Skip to content
Permalink
Browse files

return false if Node::preUpdate fails

  • Loading branch information...
Michele Rota
Michele Rota committed Mar 21, 2019
1 parent bac6479 commit c8e5ef0dbdc5fcad29fedf5f3495543efd3a0e73
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Core/Node.php
@@ -3308,7 +3308,10 @@ public function updateDb(&$record, $exectrigger = true, $excludes = '', $include
$this->trackChangesIfNeeded($record, $excludes, $includes);
if ($exectrigger) {
$this->executeTrigger('preUpdate', $record);
if (!$this->executeTrigger('preUpdate', $record)) {
Tools::atkerror('preUpdate() failed!');
return false;
}
}
$pk = $record['atkprimkey'];

0 comments on commit c8e5ef0

Please sign in to comment.
You can’t perform that action at this time.