Skip to content

Commit

Permalink
Deprecated message in libraries/src/MVC/Model/ListModel.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kopp committed Oct 23, 2022
1 parent cd0e749 commit 5e848da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/src/MVC/Model/ListModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,15 @@ protected function populateState($ordering = null, $direction = null)
break;

case 'ordering':

if (!\in_array($value, $this->filter_fields)) {
$value = $ordering;
}
break;

case 'direction':
if (!\in_array(strtoupper($value), array('ASC', 'DESC', ''))) {

if ($value && (!\in_array(strtoupper($value), array('ASC', 'DESC', '')))) {
$value = $direction;
}
break;
Expand Down

0 comments on commit 5e848da

Please sign in to comment.