-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When renaming a diagram, the reference from the diagram macro is not updated with the new name #36
Comments
This issue doesn't concern only the links to the diagrams used in other pages with the {diagram} macro, but also the links inserted in the diagrams. When a page is renamed, the link to it used in a diagram in not updated, the same as the links to a diagram inserted with the diagram macro in a page. |
@CamiAndrei updating the links from the diagram when a page is renamed is a separate issue.
|
…updated with the new name xwikisas#36 * added backlink from the diagram that was referenced inside the reference parameter and on diagram page rename update the reference from all the backlinked pages * change deprecated method
…updated with the new name xwikisas#36 * code style
…updated with the new name xwikisas#36 * changed method name
Note that for diagram macros registered before this fix, an additional save on the pages that hold the diagram macro will be needed (the save event is triggering the link between this page and the diagram) |
The steps followed:
On a simple page add the Diagram macro in order to display an existing Diagram.
note: the reference name needs to contain the full path for a non-terminal diagram page: i.e. PrimaryPage.TestDiagram.WebHome and FirstPage.TestDiagram (if the diagram page is terminal)
Rename the diagram page from TestDiagram to TestDiagram1
View the page displaying the diagram, "PrimaryPage" once more to see that the diagram is not displayed anymore.
Current solution:
Edit the parent page in order to edit the Diagram (display) macro and update manually the new reference field with the new name of the diagram.
A similar generic ticket:
https://jira.xwiki.org/browse/XWIKI-13447 brought a fix only for "includes/display macros" . Details about the latter: https://jira.xwiki.org/browse/XWIKI-4906
The text was updated successfully, but these errors were encountered: