From 481a2954545ecd92019673f4b4b4964a04f333e3 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 20 May 2014 08:19:44 -0700 Subject: [PATCH] Fix watchers to actually work properly --- .../editor/PhabricatorApplicationTransactionEditor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php index a1e0cc3163..3eb575f9ad 100644 --- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php +++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php @@ -1931,15 +1931,17 @@ abstract class PhabricatorApplicationTransactionEditor ->withPHIDs($watcher_phids) ->execute(); + $watchers = array(); foreach ($users as $user) { $can_see = PhabricatorPolicyFilter::hasCapability( $user, $object, PhabricatorPolicyCapability::CAN_VIEW); if ($can_see) { - $phids[] = $user->getPHID(); + $watchers[] = $user->getPHID(); } } + $phids[] = $watchers; } }