Merge branch 'MDL-44952-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Dan Poltawski 2016-02-29 16:34:22 +08:00
commit b70b436875
2 changed files with 2 additions and 1 deletions

View file

@ -578,7 +578,7 @@ class feedback_item_multichoice extends feedback_item_base {
return true;
}
if (!isset($value) OR !is_array($value) OR $value[0] == '' OR $value[0] == 0) {
if (empty($value) OR !is_array($value) OR $value[0] == '' OR $value[0] == 0) {
return false;
}

View file

@ -63,6 +63,7 @@ class feedback_multichoice_form extends feedback_item_form {
$mform->addElement('selectyesno',
'hidenoselect',
get_string('hide_no_select_option', 'feedback'));
$mform->disabledIf('hidenoselect', 'subtype', 'ne', 'r');
$mform->addElement('textarea', 'values', get_string('multichoice_values', 'feedback'),
'wrap="virtual" rows="10" cols="65"');