Skip to content

User cannot open second Expand macro containing display macro call if first page reference contains a page that also uses the Expand macro #197

Closed
@petrenkonikita112263

Description

@petrenkonikita112263

Prerequisites:

  • XWiki instance 13.10
  • Latest version of Pro Macros
  • Trial license

Step to reproduce:

  • Open Test Page 1 and add the Expand macro with arbitrary text in its content (or copy/paste the below code during the wiki-editing session)
{{expand title="Click here to expand..."}}
Integer condimentum rutrum convallis. Vivamus at dui vitae massa pulvinar rhoncus. Cras tempus massa libero, ut dictum augue laoreet aliquam. Nulla sapien leo, accumsan sed neque eget, euismod sagittis lacus. Aliquam placerat leo pulvinar molestie mattis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nunc et elit a massa gravida suscipit. Morbi volutpat tellus eget gravida tristique. In orci orci, semper in semper at, varius nec magna. Nullam sagittis ipsum urna, sed pulvinar lorem dignissim nec. Praesent rhoncus lacus eu feugiat efficitur. Curabitur eu diam mi. Interdum et malesuada fames ac ante ipsum primis in faucibus. Fusce vitae est quis leo semper pharetra ut ut est.
{{/expand}}
  • Navigate to the home Sandbox page and edit it in wiki-mode
  • Copy/paste the below code and save the page
**Test Page 1:**

{{expand title="Expand Sandbox Test Page 1 ...."}}
{{display reference="Sandbox.TestPage1"/}}
{{/expand}}

**Test Page 2:**

{{expand title="Expand Sandbox Test Page 2 ...."}}
{{display reference="Sandbox.TestPage2"/}}
{{/expand}}

Actual result
Users can expand and minimise the first Expand macro to see or hide the content of TestPage1 by clicking ▶. However, by clicking on the second Expand macro ▶, no content is unwrapped.

Expected result
Users can see the content of TestPage2 from the second Expand macro and hide it, as it works with the first call of Expand macro.

Example of the issued pages from XAR

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions