mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Tag isn't written
This commit is contained in:
parent
c45499b876
commit
ff5a5a33d0
@ -99,6 +99,7 @@ class GridFieldAddByDBField implements GridField_ActionProvider, GridField_HTMLP
|
|||||||
$obj->setCastedField($dbField, $data['gridfieldaddbydbfield'][$obj->ClassName][$dbField]);
|
$obj->setCastedField($dbField, $data['gridfieldaddbydbfield'][$obj->ClassName][$dbField]);
|
||||||
|
|
||||||
if ($obj->canCreate()) {
|
if ($obj->canCreate()) {
|
||||||
|
$obj->write();
|
||||||
$id = $gridField->getList()->add($obj);
|
$id = $gridField->getList()->add($obj);
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
$gridField->setCustomValidationMessage(
|
$gridField->setCustomValidationMessage(
|
||||||
|
Loading…
Reference in New Issue
Block a user