Fixed: Non filter related fields are also processed in the process filters in the back-office filter submit
This commit is contained in:
@@ -876,6 +876,11 @@ class AdminControllerCore extends Controller
|
||||
$filters = array();
|
||||
if (isset($this->list_id)) {
|
||||
foreach ($_POST as $key => $value) {
|
||||
// only process the filter fields.
|
||||
if (stripos($key, $this->list_id.'Filter_') !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_array($value)) {
|
||||
if ($value[0] === '' && $value[1] === '') {
|
||||
$value = '';
|
||||
@@ -894,6 +899,11 @@ class AdminControllerCore extends Controller
|
||||
}
|
||||
|
||||
foreach ($_GET as $key => $value) {
|
||||
// only process the filter fields.
|
||||
if (stripos($key, $this->list_id.'Filter_') !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_array($value)) {
|
||||
if ($value[0] === '' && $value[1] === '') {
|
||||
$value = '';
|
||||
|
||||
Reference in New Issue
Block a user