Skip to content
Browse files

Merge branch 'MDL-24401_m22' of git://github.com/rwijaya/moodle into …

…MOODLE_22_STABLE
  • Loading branch information...
2 parents a6bc302 + a6b4124 commit 97bb109b5517800a0d999216761012f349ca4dda @danpoltawski danpoltawski committed May 14, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/lesson/locallib.php
View
4 mod/lesson/locallib.php
@@ -741,8 +741,10 @@ public function custom_definition() {}
if ($this->_customdata['edit'] === true) {
$mform->addElement('hidden', 'edit', 1);
$this->add_action_buttons(get_string('cancel'), get_string('savepage', 'lesson'));
- } else {
+ } else if ($this->qtype === 'questiontype') {
$this->add_action_buttons(get_string('cancel'), get_string('addaquestionpage', 'lesson'));
+ } else {
+ $this->add_action_buttons(get_string('cancel'), get_string('savepage', 'lesson'));
}
}

0 comments on commit 97bb109

Please sign in to comment.
Something went wrong with that request. Please try again.