danmarsden / moodle-mod_attendance

Allows an attendance log to be kept in Moodle
https://moodle.org/plugins/mod_attendance
64 stars 151 forks source link

Undecoded links in description after restore #720

Closed voegii closed 7 months ago

voegii commented 8 months ago

When an attendance activity description has a link to another activity and you restore (e.g. via duplicate) the attendance activity, the link in the description is not valid anymore.

E.g. Link before: https://yourmoodle/mod/glossary/showentry.php?courseid=123&eid=999&displayformat=dictionary Link after: $@GLOSSARYSHOWENTRY*123*999@$&displayformat=dictionary

I would suggest to add the intro field to the "define_decode_contents" in restore task.

danmarsden commented 7 months ago

thanks for the PR - I've cherry-picked into 4.1 and higher branches.