Merge branch 'MDL-56127' of git://github.com/stronk7/moodle

This commit is contained in:
David Monllao 2016-10-03 11:09:16 +08:00
commit c31610afde

View File

@ -497,6 +497,7 @@ if (typeof M.form.dependencyManager === 'undefined') {
// Multiple selects can have one or more value assigned. A pipe (|) is used as a value separator
// when multiple values have to be selected at the same time.
values = value.split('|');
selected = [];
this.get('options').each(function() {
if (this.get('selected')) {
selected[selected.length] = this.get('value');