Validate value of Position filter in renderList

This commit is contained in:
Abhishek Kumar
2023-08-25 13:31:38 +05:30
parent ccace94c38
commit 1de8b5fd2c

View File

@@ -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;
}