-
Bug
-
Resolution: Fixed
-
Major
-
2.3.2, 2.5
-
MOODLE_23_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-36465-master -
When trying to drag and drop a section, in place of the general section, a javascript error occurs and the lightbox containing the loading icon is never hidden.
Replication steps:
- Log in as admin/password
- Navigate to a course with existing activities
- Turn editing on
- Wait for page to reload
- Drag a lower section over section 0 (the top section) and release it
Expected result: Either the section should move to become section 0 or the move should not be possible.
Actual result: The section is allowed to be dropped on section 0, but the move does not complete. The loading icon appears and the section is blurred. On reloading, the moved section is restored to its original location. The following JS error is given.
TypeError: node is null
|
http://michael.moodle.local/moodle_master_test_mysql/theme/yui_combo.php?moodle/1352347236/course/dragdrop/dragdrop.js
|
Line 105
|
Line 105 is...
return Number(node.get('id').replace(/section-/i, ''));
|