From cb8211ab8b1d1dc44ccfcd86a6bf2c71ad862264 Mon Sep 17 00:00:00 2001 From: Max Kamashev Date: Thu, 24 Sep 2015 12:35:55 +0300 Subject: refs #1245 - Hotfix logical error --- app/Model/Subtask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/Subtask.php') diff --git a/app/Model/Subtask.php b/app/Model/Subtask.php index a3911cf7..c222fe2b 100644 --- a/app/Model/Subtask.php +++ b/app/Model/Subtask.php @@ -243,7 +243,7 @@ class Subtask extends Base $subtask = $this->getById($values['id']); $result = $this->db->table(self::TABLE)->eq('id', $values['id'])->save($values); - if ($result && isset($options['quietly']) && $options['quietly']) { + if ($result && empty($options['quietly'])) { $event = $subtask; $event['changes'] = array_diff_assoc($values, $subtask); $this->container['dispatcher']->dispatch(self::EVENT_UPDATE, new SubtaskEvent($event)); -- cgit v1.2.3