Commit 0fa1c3d2 authored by Camille Tardy's avatar Camille Tardy
Browse files

Fix Form PARAM type definition


Signed-off-by: Camille Tardy's avatarCamille Tardy <camille.tardy@unige.ch>
parent 0ab3f882
......@@ -45,6 +45,7 @@ class quiz_group_dispatchgrade_form extends moodleform {
$mform_dispatch->addElement('header', 'quizgroupdispatchgrades', get_string('titleapply', 'quiz_group'));
$mform_dispatch->addElement('html', "<p>".get_string('info_dispatchgrades', 'quiz_group')."</p>");
$mform_dispatch->addElement('hidden', 'groupingid');
$mform_dispatch->setType('groupingid',PARAM_INT);
//submit button
$mform_dispatch->addElement('submit', 'dispatch', get_string('apply', 'quiz_group'));
......
......@@ -47,7 +47,7 @@ class quiz_group_settings_form extends moodleform {
//todo : fix hasattempt --> kills action button return url (bad quiz id)
// if attempt block edit.
/* $mform->addElement('hidden', 'hasattempts');
$mform->setType('hasattempts',PARAM_RAW);
$mform->setType('hasattempts',PARAM_BOOL);
$mform->setDefault('hasattempts', false);
if($this->_customdata['hasattempts']===true){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment