~ubuntu-branches/ubuntu/trusty/moodle/trusty

« back to all changes in this revision

Viewing changes to mod/quiz/mod_form.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-01-21 13:40:52 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140121134052-ym2qvsp2cd9vq0p6
Tags: 2.5.4-1
* New upstream release, fixing security issues:
  - MSA-14-0001 Config passwords visibility issue [CVE-2014-0008]
  - MSA-14-0002 Group constraints lacking in "login as" [CVE-2014-0009]
  - MSA-14-0003 CSRF vulnerability in profile fields [CVE-2014-0010]
* Move /var/lib/moodle directory into package.
* Revert back to bundled yui3. Unfortunately, version in Debian and
  of upstream are not compatible (closes: #735312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
            }
425
425
        }
426
426
 
427
 
        $mform->disabledIf('correctness' . $whenname, 'attempt' . $whenname);
428
 
        $mform->disabledIf('specificfeedback' . $whenname, 'attempt' . $whenname);
429
 
        $mform->disabledIf('generalfeedback' . $whenname, 'attempt' . $whenname);
430
 
        $mform->disabledIf('rightanswer' . $whenname, 'attempt' . $whenname);
 
427
        if ($whenname != 'during') {
 
428
            $mform->disabledIf('correctness' . $whenname, 'attempt' . $whenname);
 
429
            $mform->disabledIf('specificfeedback' . $whenname, 'attempt' . $whenname);
 
430
            $mform->disabledIf('generalfeedback' . $whenname, 'attempt' . $whenname);
 
431
            $mform->disabledIf('rightanswer' . $whenname, 'attempt' . $whenname);
 
432
        }
431
433
    }
432
434
 
433
435
    protected function preprocessing_review_settings(&$toform, $whenname, $when) {