Skip to content

Commit

Permalink
MDL-50391 format_singleactivity: fix LTI Tool opens in existing window
Browse files Browse the repository at this point in the history
  • Loading branch information
aspark21 committed Aug 13, 2015
1 parent 3bacf55 commit 8b40604
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mod/lti/mod_form.php
Expand Up @@ -75,10 +75,12 @@ public function definition() {
$mform->setAdvanced('introeditor');

// Display the label to the right of the checkbox so it looks better & matches rest of the form.
$coursedesc = $mform->getElement('showdescription');
if (!empty($coursedesc)) {
$coursedesc->setText(' ' . $coursedesc->getLabel());
$coursedesc->setLabel('&nbsp');
if ($mform->elementExists('showdescription')) {
$coursedesc = $mform->getElement('showdescription');
if (!empty($coursedesc)) {
$coursedesc->setText(' ' . $coursedesc->getLabel());
$coursedesc->setLabel('&nbsp');
}
}

$mform->setAdvanced('showdescription');
Expand Down

0 comments on commit 8b40604

Please sign in to comment.