From 1de8b5fd2cefda994cccdf1c53a9ae3cf2efa1fc Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 25 Aug 2023 13:31:38 +0530 Subject: [PATCH] Validate value of Position filter in renderList --- classes/controller/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index ea3a469f7..9b1b6b298 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -881,7 +881,7 @@ class AdminControllerCore extends Controller $key = isset($tmp_tab[1]) ? $tmp_tab[0].'.`'.$tmp_tab[1].'`' : '`'.$tmp_tab[0].'`'; // as in database 0 means position 1 in the renderlist - if (isset($field['position'])) { + if (isset($field['position']) && Validate::isInt($value)) { $value -= 1; }