Details
-
Bug
-
Resolution: Fixed
-
Major
-
11.3
-
None
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
Hello there
Defining the parameter field of an Macro as
java.lang.Number
results in the parameter variable
$xcontext.macro.params.
within the macro to be of type "string"
which causes various issues when doing conditions like > or <, as strings cannot be compared this way ...
One would need to convert this within the macro. Would be efficient if the type is inherited by the variable exposed to the macro.
Tested with Velocity using
Parameter class type: ${variable.class.name} which returned string.
Attachments
Issue Links
- depends on
-
XWIKI-16549 Add a new script binding for wiki macros
- Closed
- is related to
-
XWIKI-13282 Allow wiki macros to indicate the type of parameters
- Closed
- relates to
-
XWIKI-17768 It's not possible anymore to have a wiki macro parameter of type Wiki
- Closed