Merge pull request #195 from sumitwebkul/gli-459

Fix Filter for the position field in the render lists of admin controllers
This commit is contained in:
Rohit Jain
2021-02-04 19:26:53 +05:30
committed by GitHub

View File

@@ -858,6 +858,11 @@ 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'])) {
$value -= 1;
}
// Assignment by reference
if (array_key_exists('tmpTableFilter', $field)) {
$sql_filter = & $this->_tmpTableFilter;