]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12159 - We were only showing the filter selections to the user list when
authorpoltawski <poltawski>
Thu, 20 Dec 2007 17:43:19 +0000 (17:43 +0000)
committerpoltawski <poltawski>
Thu, 20 Dec 2007 17:43:19 +0000 (17:43 +0000)
there were more results than shown on the current page. This is unintuitive
with small lists where we were invisibly exluding users because of a filter
which is applied (but not shown on screen).

Now we always show the filter selections. Thanks to John Ryan.
merged from MOODLE_19_STABLE

user/index.php

index ee07aac87449086586d4065b90d8abf76d42caf6..e07d8e763f30e51b483a54a5251a8d22d4e2bf37 100644 (file)
 
     $matchcount = count_records_sql('SELECT COUNT(distinct u.id) '.$from.$where.$wheresearch);
 
-    $table->initialbars($totalcount > $perpage);
+    $table->initialbars(true);
     $table->pagesize($perpage, $matchcount);
 
     $userlist = get_recordset_sql($select.$from.$where.$wheresearch.$sort,