gjbarnard / moodle-format_topcoll

Collapsed Topics course format for Moodle.
http://docs.moodle.org/en/Collapsed_Topics_course_format
GNU General Public License v3.0
35 stars 60 forks source link

Error in urls for additional information #116

Closed monnardj closed 2 years ago

monnardj commented 2 years ago

In the latest version of the plugin (3.11.0.4), the urls that allow teachers to access the grading pages for activities contain an error : ampersands are encoded in the url. Because of this, the links do not work. For instance : /mod/assign/view.php?action=grading&id=716558&tsort=timesubmitted&filter=require_grading has become : /mod/assign/view.php?action=grading&id=716558&tsort=timesubmitted&filter=require_grading

This is probably due to the introduction of the sectioncmmeta template in course_renderer.php, which replaced html_writer, and treats specials characters differently.

gjb2048 commented 2 years ago

@monnardj Interesting, thanks for reporting.

gjb2048 commented 2 years ago

@monnardj Please apply / make the changes in https://github.com/gjb2048/moodle-format_topcoll/commit/15de3a3c2694618aa6534ac5a1f470ff4f539ade and confirm it solves the bug.

monnardj commented 2 years ago

It works now for the links to the grading pages.

However, the edit section link (under cog icon) for section 0 is incorrect (still has & inside). Line 110 in section.mustache should probably be changed similarly to line 101.

gjb2048 commented 2 years ago

@monnardj The patch (https://github.com/gjb2048/moodle-format_topcoll/commit/15de3a3c2694618aa6534ac5a1f470ff4f539ade) already has that fix.

monnardj commented 2 years ago

The patch only changed line 101 in section.mustache, not line 110, which I also had to change to remove the &.

gjb2048 commented 2 years ago

@monnardj Thanks, I'm only human! -> new patch https://github.com/gjb2048/moodle-format_topcoll/commit/10e5080af6d46e6a19856582a60981e21ba34e10.

monnardj commented 2 years ago

Everything working fine, now ! And thanks for your great plugins 👍