?
Related to # 5027
avatar bkrztuk
bkrztuk
6 Nov 2014

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).
avatar bkrztuk bkrztuk - open - 6 Nov 2014
avatar jissues-bot jissues-bot - change - 6 Nov 2014
Labels Added: ?
avatar roland-d roland-d - change - 8 Nov 2014
Rel_Number 5027
Relation Type Related to
avatar roland-d roland-d - change - 8 Nov 2014
Status New Closed
avatar roland-d
roland-d - comment - 8 Nov 2014

Closed as issue is fixed in #5027

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5004.

avatar jissues-bot
jissues-bot - comment - 8 Nov 2014

Set to "closed" on behalf of @roland-d by The JTracker Application at issues.joomla.org/joomla-cms/5004

avatar jissues-bot jissues-bot - close - 8 Nov 2014
avatar jissues-bot jissues-bot - change - 8 Nov 2014
Closed_Date 0000-00-00 00:00:00 2014-11-08 06:49:19

Add a Comment

Login with GitHub to post a comment