Permalink
Browse files

Merge branch 'w11_MDL-27457_m21_enrolnorecover' of git://github.com/s…

…kodak/moodle into MOODLE_21_STABLE
  • Loading branch information...
2 parents 449fd68 + 9be1090 commit 63f4993e4a8b76ea706415ba94191dcaf2431767 Sam Hemelryk committed Mar 12, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 enrol/manual/version.php
  2. +5 −1 enrol/manual/yui/quickenrolment/quickenrolment.js
@@ -26,4 +26,4 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010071201;
+$plugin->version = 2010071202;
@@ -379,7 +379,11 @@ YUI.add('moodle-enrol_manual-quickenrolment', function(Y) {
params['role'] = this.get(UEP.BASE).one('.'+CSS.ENROLMENTOPTION+'.'+CSS.ROLE+' select').get('value');
params['startdate'] = this.get(UEP.BASE).one('.'+CSS.ENROLMENTOPTION+'.'+CSS.STARTDATE+' select').get('value');
params['duration'] = this.get(UEP.BASE).one('.'+CSS.ENROLMENTOPTION+'.'+CSS.DURATION+' select').get('value');
- params['recovergrades'] = this.get(UEP.BASE).one('#'+CSS.RECOVERGRADES).get('checked')?1:0;
+ if (this.get(UEP.DISABLEGRADEHISTORY) != true) {
+ params['recovergrades'] = this.get(UEP.BASE).one('#'+CSS.RECOVERGRADES).get('checked')?1:0;
+ } else {
+ params['recovergrades'] = 0;
+ }
Y.io(M.cfg.wwwroot+this.get(UEP.AJAXURL), {
method:'POST',

0 comments on commit 63f4993

Please sign in to comment.