From e46dcc0cc4285d3112589e2409625315f5d2336b Mon Sep 17 00:00:00 2001 From: aroquen Date: Sat, 6 Jun 2015 15:15:10 +0200 Subject: [PATCH] Add subscribed users to dropdown menu. --- lib/toselector.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/toselector.php b/lib/toselector.php index 6d424dc259..4c0bda3312 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -102,7 +102,12 @@ class ToSelector extends Widget $choices[$value] = $groups->getBestName(); } - // XXX: add users...? + // Add subscribed users to dropdown menu + $users = $this->user->getSubscribed(); + while ($users->fetch()) { + $value = 'profile:'.$users->id; + $choices[$value] = $users->getBestName(); + } if ($this->to instanceof Profile) { $value = 'profile:'.$this->to->id; -- 2.39.2