-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.3, 3.10
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MDL-70342-master -
During the work on MDL-65183, double quotes around the activity name and course name have sneaked into block_timeline's view:
Looking at the diff https://github.com/moodle/moodle/commit/6c97045e5e71a8b5c5b5998c9975e4551c59b9f5, you clearly see that the quotes around the HTML attributes were replaced with
{{#quote}}
|
correctly, but there wasn't any need to surround the activity and course name with quotes as well.
This should be handled as a regression and be reverted with an easy patch:
[abias@moodle-test1 moodle_ng]$ git diff
|
diff --git a/blocks/timeline/templates/event-list-item.mustache b/blocks/timeline/templates/event-list-item.mustache
|
index c483c28..a33a10e 100644
|
--- a/blocks/timeline/templates/event-list-item.mustache
|
+++ b/blocks/timeline/templates/event-list-item.mustache
|
@@ -52,9 +52,9 @@
|
<a href="{{url}}"
|
title={{#quote}}{{{name}}}{{/quote}}
|
aria-label='{{#str}} ariaeventlistitem, block_timeline, { "name": {{#quote}}{{{name}}}{{/quote}}, "cou
|
- ><h6 class="event-name text-truncate mb-0">{{#quote}}{{{name}}}{{/quote}}</h6></a>
|
+ ><h6 class="event-name text-truncate mb-0">{{{name}}}</h6></a>
|
{{#course.fullnamedisplay}}
|
- <small class="text-muted text-truncate mb-0">{{#quote}}{{{course.fullnamedisplay}}}{{/quote}}</small>
|
+ <small class="text-muted text-truncate mb-0">{{{course.fullnamedisplay}}}</small>
|
{{/course.fullnamedisplay}}
|
{{#action.actionable}}
|
<h6 class="mb-0 pt-2">
|
- is a regression caused by
-
MDL-65183 block_timeline can cause JSON parse error on dashboard when activities are saved with newline characters
- Closed