mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-47494 ddmarker: change index of form element we refer to
changes in form base class broke the code to refer to the marker label input field.
This commit is contained in:
parent
e1f5f60197
commit
ad1b0ae9c7
1 changed files with 1 additions and 1 deletions
2
question/type/ddmarker/yui/form/form.js
vendored
2
question/type/ddmarker/yui/form/form.js
vendored
|
@ -98,7 +98,7 @@ YUI.add('moodle-qtype_ddmarker-form', function(Y) {
|
|||
},
|
||||
set_options_for_drag_item_selectors : function () {
|
||||
var dragitemsoptions = {0: ''};
|
||||
for (var i=0; i < this.form.get_form_value('noitems', []); i++) {
|
||||
for (var i=1; i <= this.form.get_form_value('noitems', []); i++) {
|
||||
var label = this.get_marker_text(i);
|
||||
if (label !== "") {
|
||||
dragitemsoptions[i] = Y.Escape.html(label);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue