MDL-25870 enrol-manual: Fixed pagination of AJAX search results for users when changi...
authorSam Hemelryk <sam@moodle.com>
Wed, 13 Jul 2011 06:02:30 +0000 (14:02 +0800)
committerSam Hemelryk <sam@moodle.com>
Wed, 13 Jul 2011 06:02:30 +0000 (14:02 +0800)
enrol/manual/yui/quickenrolment/quickenrolment.js

index 13290d1..0aa469f 100644 (file)
@@ -281,6 +281,7 @@ YUI.add('moodle-enrol_manual-quickenrolment', function(Y) {
                 this.set(UEP.PAGE, this.get(UEP.PAGE)+1);
             } else {
                 this.set(UEP.USERCOUNT, 0);
+                this.set(UEP.PAGE, 0);
             }
             params = this.get(UEP.PARAMS);
             params['sesskey'] = M.cfg.sesskey;