Skip to content

Commit

Permalink
MDL-42919 Question: Remove &moodle#160; from empty labels
Browse files Browse the repository at this point in the history
This allows the form elements with empty labels to "fold" properly.
  • Loading branch information
Damyon Wiese committed Nov 26, 2013
1 parent e6b1d13 commit 4d4b345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion question/export_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function definition() {
foreach ($fileformatnames as $shortname => $fileformatname) {
$currentgrp1 = array();
$currentgrp1[] = $mform->createElement('radio', 'format', '', $fileformatname, $shortname);
$mform->addGroup($currentgrp1, "formathelp[$i]", '&#160;', array('<br />'), false);
$mform->addGroup($currentgrp1, "formathelp[$i]", '', array('<br />'), false);

if (get_string_manager()->string_exists('pluginname_help', 'qformat_' . $shortname)) {
$mform->addHelpButton("formathelp[$i]", 'pluginname', 'qformat_' . $shortname);
Expand Down
2 changes: 1 addition & 1 deletion question/import_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function definition() {
foreach ($fileformatnames as $shortname => $fileformatname) {
$currentgrp1 = array();
$currentgrp1[] = $mform->createElement('radio', 'format', '', $fileformatname, $shortname);
$mform->addGroup($currentgrp1, "formathelp[$i]", '&#160;', array('<br />'), false);
$mform->addGroup($currentgrp1, "formathelp[$i]", '', array('<br />'), false);

if (get_string_manager()->string_exists('pluginname_help', 'qformat_' . $shortname)) {
$mform->addHelpButton("formathelp[$i]", 'pluginname', 'qformat_' . $shortname);
Expand Down

0 comments on commit 4d4b345

Please sign in to comment.