diff --git a/components/com_content/models/category.php b/components/com_content/models/category.php index b3d2e49e9833a..37ee43c05cd0f 100644 --- a/components/com_content/models/category.php +++ b/components/com_content/models/category.php @@ -154,11 +154,13 @@ protected function populateState($ordering = null, $direction = null) $this->setState('filter.access', false); } + $itemid = $app->input->get('id', 0, 'int') . ':' . $app->input->get('Itemid', 0, 'int'); + // Optional filter text - $this->setState('list.filter', $app->input->getString('filter-search')); + $search = $app->getUserStateFromRequest('com_content.category.list.' . $itemid . '.filter-search', 'filter-search', '', 'string'); + $this->setState('list.filter', $search); // Filter.order - $itemid = $app->input->get('id', 0, 'int') . ':' . $app->input->get('Itemid', 0, 'int'); $orderCol = $app->getUserStateFromRequest('com_content.category.list.' . $itemid . '.filter_order', 'filter_order', '', 'string'); if (!in_array($orderCol, $this->filter_fields))