From a03b1c9d44a9f30065e662c1e2e009aa0bcc6052 Mon Sep 17 00:00:00 2001 From: iglocska Date: Fri, 14 Sep 2018 10:58:19 +0200 Subject: [PATCH] fix: [internal] Fixed an issue that prevented all to ids attributes from being fetched on the event view --- app/Model/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Event.php b/app/Model/Event.php index 55ce62e1d..7a6610198 100755 --- a/app/Model/Event.php +++ b/app/Model/Event.php @@ -1622,7 +1622,7 @@ class Event extends AppModel } } - if (isset($options['to_ids'])) { + if (!empty($options['to_ids']) || $options['to_ids'] === 0) { $conditionsAttributes['AND'][] = array('Attribute.to_ids' => $options['to_ids']); }