-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.0, 3.11.8, 4.0.2, 4.1
-
MOODLE_30_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-51145-master
-
Templates that use the blocks pragma are not able to include (as a partial) another template that uses the blocks pragma.
In the javascript implementation it seems to render the template incorrectly because the block variables in the parent context are being cleared before trying to render the included template. I suspect this can be fixed by cloning the parent context before clearing the block vars and passing the cleaned clone through to render the included template.
This looks like the place to make the changes.
For the PHP implementation this causes PHP to seg fault (really weird). I'm not sure of the solution for PHP.