Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
12.10
-
None
-
Reproduced on XWiki 18.10.0-rc-1 (Jetty HSQLDB distribution) with Chrome.
-
Unknown
-
Description
Steps to reproduce
- Create a page with the following content:
{{liveData source="liveTable" sourceParameters="className=XWiki.XWikiUsers" properties="doc.title,first_name,last_name"/}} - View it, with a user whose last name is empty (e.g. the Administrator of a fresh instance).
Expected results
The empty cell is blank.
Actual results
The cell displays:
${request.transprefix}emptyvalue
Cause
XWiki.LiveTableResultsMacros displays an empty value with a translation key built from the transprefix request parameter. The Live Data liveTable source only sets that parameter when the table has a translationPrefix source parameter. Without it, the Velocity reference is left as is, and the resulting key has no translation.
The Records macro is not affected, since it always sets a translation prefix.