Added filters above the admin list views to resolve gh-378
This commit is contained in:
@ -58,8 +58,15 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
||||
$this->context .= '.' . $layout;
|
||||
}
|
||||
|
||||
// Check if the form was submitted
|
||||
$formSubmited = $app->input->post->get('form_submited');
|
||||
|
||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||
$this->setState('filter.access', $access);
|
||||
if ($formSubmited)
|
||||
{
|
||||
$access = $app->input->post->get('access');
|
||||
$this->setState('filter.access', $access);
|
||||
}
|
||||
|
||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||
$this->setState('filter.published', $published);
|
||||
@ -77,7 +84,11 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
||||
$this->setState('filter.search', $search);
|
||||
|
||||
$source = $this->getUserStateFromRequest($this->context . '.filter.source', 'filter_source');
|
||||
$this->setState('filter.source', $source);
|
||||
if ($formSubmited)
|
||||
{
|
||||
$source = $app->input->post->get('source');
|
||||
$this->setState('filter.source', $source);
|
||||
}
|
||||
|
||||
// List state information.
|
||||
parent::populateState($ordering, $direction);
|
||||
|
Reference in New Issue
Block a user