-
Bug
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
When searching report audience types, where there is a disabled type (e.g. on a brand new install, Cohort members is disabled because there are no cohorts) you receive the following JS error because the disabled type have no dataset:
Uncaught TypeError: item.dataset.name is undefined
|
sidebarCardFilter http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:2278
|
sidebarCardFilter http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:2278
|
timeout http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:713
|
setTimeout handler*_exports.debounce/< http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:713
|
init http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:2278
|
init http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:2278
|
<anonymous> http://localhost:8000/reportbuilder/edit.php?id=6#audience line 2 > injectedScript:3
|
execCb http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
check http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
enable http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
init http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
o http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
setTimeout handler*req.nextTick< http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
o http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
requirejs http://localhost:8000/lib/javascript.php/1648541545/lib/requirejs/require.min.js:5
|
<anonymous> http://localhost:8000/reportbuilder/edit.php?id=6#audience line 2 > injectedScript:2
|
jQuery 3
|
runTemplateJS http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:79
|
domReplace http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:79
|
replaceNodeContents http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:79
|
loadTab http://localhost:8000/lib/requirejs.php/1648541545/core_form/events.js:231
|
jQuery 32
|
events.js:2278:1543
|
There is a second problem with the sidebar searching, in that card headings should be hidden when they contain no matching items but that doesn't seem to currently work: