Merge branch 'MDL-68328-dlfix' of https://github.com/cengage/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 1 May 2020 21:33:08 +0000 (23:33 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 1 May 2020 21:33:08 +0000 (23:33 +0200)
mod/lti/mod_form.php

index 49e925b..a6033cc 100644 (file)
@@ -256,7 +256,11 @@ class mod_lti_mod_form extends moodleform_mod {
             $mform->addHelpButton('secureicon', 'secure_icon_url', 'lti');
             $mform->hideIf('secureicon', 'typeid', 'in', $noncontentitemtypes);
         } else {
-            // Keep those in the form to allow deep linking, key and secret are removed altogether.
+            // Keep those in the form to allow deep linking.
+            $mform->addElement('hidden', 'resourcekey', '', array('id' => 'id_resourcekey'));
+            $mform->setType('resourcekey', PARAM_TEXT);
+            $mform->addElement('hidden', 'password', '', array('id' => 'id_password'));
+            $mform->setType('password', PARAM_TEXT);
             $mform->addElement('hidden', 'instructorcustomparameters', '', array('id' => 'id_instructorcustomparameters'));
             $mform->setType('instructorcustomparameters', PARAM_TEXT);
             $mform->addElement('hidden', 'icon', '', array('id' => 'id_icon'));