Tag isn't written

This commit is contained in:
Damian Mooyman 2019-10-15 15:45:14 +13:00
parent c45499b876
commit ff5a5a33d0
No known key found for this signature in database
GPG Key ID: 19B1752E86A700BB

View File

@ -99,6 +99,7 @@ class GridFieldAddByDBField implements GridField_ActionProvider, GridField_HTMLP
$obj->setCastedField($dbField, $data['gridfieldaddbydbfield'][$obj->ClassName][$dbField]);
if ($obj->canCreate()) {
$obj->write();
$id = $gridField->getList()->add($obj);
if (!$id) {
$gridField->setCustomValidationMessage(