Index: db/dbitem.php =================================================================== --- db/dbitem.php (revision 13130) +++ db/dbitem.php (working copy) @@ -513,13 +513,18 @@ return false; } - $affected = $this->Conn->getAffectedRows(); - if (!$system_update && $affected == 1) { + $affected_rows = $this->Conn->getAffectedRows(); + + if (!$system_update && ($affected_rows > 0)) { $this->setModifiedFlag(clUPDATE); } $this->saveCustomFields(); - $this->raiseEvent('OnAfterItemUpdate'); + + if ($affected_rows > 0) { + $this->raiseEvent('OnAfterItemUpdate'); + } + $this->Loaded = true; if ($this->mode != 't') {