Details
-
Bug
-
Resolution: Fixed
-
Highest
-
6.8.2, 6.11.2, 7.13.2, 8.5.0, 8.1.1, 8.5.2, 8.6.1
-
15
-
Severity 2 - Major
-
184
-
Description
Summary
Tables that are generated by macros and have <thead> HTML tag are not sortable when they are added to to Expand macro.
This issue seems to be related to CONFSERVER-55253 where tables generated by the Page Property Report macro are not sortable when added to the expand macro. However, it seems that this issue is more common and happens to other tables that are generated by macro.
Another example of this is Content Report Table. A table that is generated by this macro and placed inside the Expand macro will not be sortable.
A common characteristic of both of the above tables are that they
- Have two <thead> tags where the first is wrapped around the header and the second <thead> tag is wrapped around the first element of the table from <tbody>.
- The table macros above when not added to an expand macro will only have one <thead> tag and it is wrapped around the header of the table only
Steps to Reproduce
- Create a new Confluence page
- Add a PPR macro or Content Report Table.
- Place these macros inside the Expand macro
- Attempt to sort the table
Expected Results
The tables are sortable
Actual Results
The tables are not sortable
Possible Workaround
workaround was tested in 7.13.12
- Go to > General Configuration > User Macros
- Choose Create a User Macro
- Enter the details
- Set the Definition of User Macro to Rendered
- In the template section enter the following:
## This is an example macro ## @param Name:title=Name|type=string|required=true|desc=Your name ## @param Colour:title=Favourite Colour|type=enum|enumValues=red,green,blue|default=red|desc=Choose your favourite colour<details> <summary style="color:blue;"><a style="pointer-events: none; cursor: default;" href=""><u>$!param Name »</a></summary> $body </details>
This is just a sample
- Go to a page and add the newly created macro (The macro can be found in the Macro list +)
- Save the page and verify if it works