Merge pull request #817 from abhishek-webkul/gli-1420

Fixed: PHP warning when using non-numeric value for Position filter in renderLists at back office
This commit is contained in:
Rohit Jain
2023-12-28 16:28:43 +05:30
committed by GitHub

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