Skip to content

Commit

Permalink
MDL-59627 mod_data: fix incorrect use of sortorder
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 31, 2017
1 parent f82e86e commit c2c941b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/data/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ function data_search_entries($data, $cm, $context, $mode, $currentgroup, $search
$totalcount = count($newrecordids);
} else {
$sqlselect = "SELECT $what $fromsql $sortorder";
$sqlcountselect = "SELECT $count $fromsql $sortorder";
$sqlcountselect = "SELECT $count $fromsql";
$totalcount = $DB->count_records_sql($sqlcountselect, $allparams);
}

Expand Down

0 comments on commit c2c941b

Please sign in to comment.