Fixed: Non filter related fields are also processed in the process filters in the back-office filter submit

This commit is contained in:
vishalsingh.qlo325
2025-07-02 15:29:03 +05:30
parent 569c093b00
commit 6096606e43

View File

@@ -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 = '';