Skip to content

Commit

Permalink
Partial revert of #43230 (#43930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar authored Aug 17, 2024
1 parent 5909f54 commit ceab5b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ protected function getListQuery()

// Process select filters.
$supported = $this->getState('filter.supported');
$enabled = $this->getState('filter.enabled');
$enabled = $this->getState('filter.enabled', '');
$type = $this->getState('filter.type');
$clientId = $this->getState('filter.client_id');
$folder = $this->getState('filter.folder');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,13 @@ protected function populateState($ordering = 'key', $direction = 'asc')
$client = substr($language_client, -1);
$language = substr($language_client, 0, -1);

// Sets the search filter.
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
$this->setState('filter.search', $search);

$this->setState('language_client', $language . $client);
$this->setState('filter.client', $client ? 'administrator' : 'site');
$this->setState('filter.language', $language);

// Add the 'language_client' value to the session to display a message if none selected
$app->setUserState('com_languages.overrides.language_client', $language . $client);
Expand Down

0 comments on commit ceab5b5

Please sign in to comment.