In JFormFieldUser class there are two functions:
protected function getGroups() { return null; }
protected function getExcluded() { return null; }
Function getInput() invoke both this methods which is totally pointless because it always assign null values to this variables:
$groups = $this->getGroups();
$excluded = $this->getExcluded();
Then this always null parameters are passed to com_users&view=users&ayout=modal view which is working pretty nice when you provide some values. For example when getGroups function is recoded to:
protected function getGroups()
{
if(isset($this->element['filter'])) {
return explode(',', $this->element['filter']);
}
return null;
}
``` using filtering field in form file like:
allows to show only users from particular user groups in modal because this filtering option is already implemented in this view (without hiding filter field).
Labels |
Added:
?
|
Rel_Number | ⇒ | 5027 | |
Relation Type | ⇒ | Related to |
Status | New | ⇒ | Closed |
Set to "closed" on behalf of @roland-d by The JTracker Application at issues.joomla.org/joomla-cms/5004
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-11-08 06:49:19 |
Closed as issue is fixed in #5027
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5004.