-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.1
-
-
-
MOODLE_37_STABLE
-
MOODLE_38_STABLE
-
Moodle App 3.8.0
In 3.7, our site block (as implemented in MOBILE-2935) worked; in 3.7.1, it stopped working.
I have investigated and the cause is that our 'handlers' in mobile.php was:
'linksview' => [
|
'delegate' => 'CoreBlockDelegate',
|
'method' => 'mobile_block_view',
|
'styles' => [
|
'url' => $CFG->wwwroot . '/blocks/ousitelinks/mobile.css?v=2019071600',
|
'version' => 2019071600
|
]
|
]
|
Note that there is no 'displaydata' array. Adding this makes the block work again:
'displaydata' => [
|
]
|
So this is easily fixed at our end. However, I think it would be better if the code continued to work if displaydata is omitted (it throws a javascript error). I'll submit a patch although this is not urgent.