Skip to content

Commit

Permalink
Merge branch 'MDL-68239' of https://github.com/NinaHerrmann/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Apr 6, 2020
2 parents c52f3a3 + d097538 commit b0aaee0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod/data/field/multimenu/field.class.php
Expand Up @@ -52,12 +52,16 @@ function display_add_field($recordid = 0, $formdata = null) {
$str = '<div title="'.s($this->field->description).'">';
$str .= '<input name="field_' . $this->field->id . '[xxx]" type="hidden" value="xxx"/>'; // hidden field - needed for empty selection

$str .= '<label for="field_' . $this->field->id . '" class="accesshide">';
$str .= html_writer::span($this->field->name);
$str .= '<label for="field_' . $this->field->id . '">';
$str .= '<legend><span class="accesshide">' . $this->field->name;

if ($this->field->required) {
$str .= '&nbsp;' . get_string('requiredelement', 'form') . '</span></legend>';
$str .= '<div class="inline-req">';
$str .= $OUTPUT->pix_icon('req', get_string('requiredelement', 'form'));
$str .= '</div>';
} else {
$str .= '</span></legend>';
}
$str .= '</label>';
$str .= '<select name="field_' . $this->field->id . '[]" id="field_' . $this->field->id . '"';
Expand Down

0 comments on commit b0aaee0

Please sign in to comment.