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.
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.