mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-44952-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
b70b436875
2 changed files with 2 additions and 1 deletions
|
@ -578,7 +578,7 @@ class feedback_item_multichoice extends feedback_item_base {
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ class feedback_multichoice_form extends feedback_item_form {
|
||||||
$mform->addElement('selectyesno',
|
$mform->addElement('selectyesno',
|
||||||
'hidenoselect',
|
'hidenoselect',
|
||||||
get_string('hide_no_select_option', 'feedback'));
|
get_string('hide_no_select_option', 'feedback'));
|
||||||
|
$mform->disabledIf('hidenoselect', 'subtype', 'ne', 'r');
|
||||||
|
|
||||||
$mform->addElement('textarea', 'values', get_string('multichoice_values', 'feedback'),
|
$mform->addElement('textarea', 'values', get_string('multichoice_values', 'feedback'),
|
||||||
'wrap="virtual" rows="10" cols="65"');
|
'wrap="virtual" rows="10" cols="65"');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue