-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.4
-
MOODLE_401_STABLE
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-78728-401 -
Discovered while looking at MDL-78707 - when toggling the sections in the test fixture, you receive the following errors on browser console
09:19:12.820 Uncaught TypeError: formParent is null
|
init http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:1870
|
jQuery 7
|
show http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
i jQuery
|
handle http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4591
|
jQuery 7
|
triggerTransitionEnd http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4591
|
transitionEndEmulator http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4591
|
setTimeout handler*transitionEndEmulator http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4591
|
show http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
toggle http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
Collapse http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
_jQueryInterface http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
jQuery 2
|
_jQueryInterface http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
<anonymous> http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
jQuery 2
|
<anonymous> http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4583
|
jQuery 8
|
<anonymous> http://moodle.internal/master/lib/requirejs.php/1689581882/core_form/events.js:4589
|
execCb http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
check http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
bind http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
each http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
bind http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
each http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
init http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
h http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
completeLoad http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
onScriptLoad http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
load http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
load http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
load http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
fetch http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
check http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
enable http://moodle.internal/master/lib/javascript.php/1689581882/lib/requirejs/require.min.js:5
|
events.js:1870:2195
|
To recreate manually navigate to <WWWROOT>/lib/tests/fixtures/readonlyform.php
Pressing Expand all generates the same error and doesn't have any effect on the page (nothing is expanded). Looks to be a regression from MDL-75784, which assumes all the containers have a <form> ancestor
This will be partly resolved by MDL-78707, there's just the expand/collapse all to fix here
P.S. Make sure that the Behat scenario is updated along with this issue, despite the errors reported here it currently still passes (it shouldn't). The updated scenario should fail on current master, but pass when this issue is fixed