Add subscribed users to dropdown menu.

This commit is contained in:
aroquen 2015-06-06 15:15:10 +02:00
parent 6478034e92
commit e46dcc0cc4

View File

@ -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;