From 398fba89e3bd2ae1557f7213380f2d420929f2d8 Mon Sep 17 00:00:00 2001 From: Mark Nielsen Date: Mon, 1 Jul 2013 11:26:48 +0800 Subject: [PATCH] MDL-40308: Privacy settings do not change Update LTI mod form so checkboxes always submit their value. --- mod/lti/mod_form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/lti/mod_form.php b/mod/lti/mod_form.php index ec1b5bf4c81..212aab550d0 100644 --- a/mod/lti/mod_form.php +++ b/mod/lti/mod_form.php @@ -152,15 +152,15 @@ class mod_lti_mod_form extends moodleform_mod { // Add privacy preferences fieldset where users choose whether to send their data $mform->addElement('header', 'privacy', get_string('privacy', 'lti')); - $mform->addElement('checkbox', 'instructorchoicesendname', ' ', ' ' . get_string('share_name', 'lti')); + $mform->addElement('advcheckbox', 'instructorchoicesendname', ' ', ' ' . get_string('share_name', 'lti')); $mform->setDefault('instructorchoicesendname', '1'); $mform->addHelpButton('instructorchoicesendname', 'share_name', 'lti'); - $mform->addElement('checkbox', 'instructorchoicesendemailaddr', ' ', ' ' . get_string('share_email', 'lti')); + $mform->addElement('advcheckbox', 'instructorchoicesendemailaddr', ' ', ' ' . get_string('share_email', 'lti')); $mform->setDefault('instructorchoicesendemailaddr', '1'); $mform->addHelpButton('instructorchoicesendemailaddr', 'share_email', 'lti'); - $mform->addElement('checkbox', 'instructorchoiceacceptgrades', ' ', ' ' . get_string('accept_grades', 'lti')); + $mform->addElement('advcheckbox', 'instructorchoiceacceptgrades', ' ', ' ' . get_string('accept_grades', 'lti')); $mform->setDefault('instructorchoiceacceptgrades', '1'); $mform->addHelpButton('instructorchoiceacceptgrades', 'accept_grades', 'lti');