MDL-9077 switch from client to server side validation for reference field as client side not supported for this type (file upload name) - propogate to 1.8.
This commit is contained in:
@@ -26,7 +26,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
// Reference
|
||||
$mform->addElement('choosecoursefile', 'reference', get_string('package','scorm'));
|
||||
$mform->setType('reference', PARAM_RAW); // We need to find a better PARAM
|
||||
$mform->addRule('reference', get_string('required'), 'required', null, 'client');
|
||||
$mform->addRule('reference', get_string('required'), 'required');
|
||||
$mform->setHelpButton('reference',array('package', get_string('package', 'scorm'), 'scorm'));
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user