Details
-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
5.9.4, 5.8.x
-
1
-
Severity 3 - Minor
-
Description
Summary.
labelmanager.getSpacesWithLabel(label) does not return any result even with a valid space category.
Step to replicate
- Create a space
- Add the 'test' into the space label/category
- Add a new User macro with the following template.
#set($param0='test') #set($labelmanager=$action.getLabelManager()) #set($label=$labelmanager.getLabel($param0) ) #if ( $label ) Valid Label #set ( $spaces = $action.labelManager.getSpacesWithLabel( $label ) ) <ul> #foreach ( $space in $spaces ) <li><a href="$!space.urlPath">$!space.name</a></li> #end </ul> #else Not valid label #end
- Add use macro into a page
Expected Result
The page should display the following since the space with the label exist.
Valid Label
- <SPACENAME>
Observed Result
Only the following is displayed
Valid Label