forked from xwiki-contrib/application-task
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Steps to reproduce:
- Add a macro that supports xwiki syntax. e.g. {{info}}
- Add inside the info macro a task macro
- Save and view the page
Expected:
The rendered task has a link to its associated page with the id as a label.
Actual:
The task has no link
This happens because the the id and task reference are created using a DocumentUpdating listener. This listener checks the XDOM of the document and creates a document for the task and puts that reference in the parameters of the macro. The issue is that it only checks the content of the page, not also the content of other macros.
To fix this, we need to recursively check the content of the macros that support xwiki syntax 2.1 and process the tasks inside them.