Fixed the filter array checking in the getStoredId method.

This commit is contained in:
Llewellyn committed 2020-12-10 06:16:01 +02:00
1 parent 029c3f423e
commit 360c61f5da
49 files changed
+635 -80

No files matched your search

+11 -1
View File
@@ -204,7 +204,17 @@ class ComponentbuilderModelComponents_plugins extends JModelList
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
$id .= ':' . $this->getState('filter.access');
// Check if the value is an array
$_filter = $this->getState('filter.access');
if (ComponentbuilderHelper::checkArray($_filter))
{
$id .= ':' . implode(':', $_filter);
}
// This should not happen, but we try
elseif (is_numeric($_filter))
{
$id .= ':' . $_filter;
}
$id .= ':' . $this->getState('filter.ordering');
$id .= ':' . $this->getState('filter.created_by');
$id .= ':' . $this->getState('filter.modified_by');