From fc298af2059d1b3c1dc81356a7fa7219bc85c173 Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Thu, 8 Jan 2026 15:47:15 +0530 Subject: [PATCH] Fixed: Export option is not working correctly in case of filter data --- classes/controller/AdminController.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 67d88e69a..d9e3657ab 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -876,13 +876,9 @@ 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] === '') { + if (isset($value[0], $value[1]) && $value[0] === '' && $value[1] === '') { $value = ''; } else { $value = json_encode($value); @@ -899,13 +895,9 @@ 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] === '') { + if (isset($value[0], $value[1]) && $value[0] === '' && $value[1] === '') { $value = ''; } else { $value = json_encode($value);