Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25908

Empty values are displayed as "${request.transprefix}emptyvalue" in a Live Data table using the liveTable source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.10
    • Live Data
    • None
    • Reproduced on XWiki 18.10.0-rc-1 (Jetty HSQLDB distribution) with Chrome.
    • Unknown

    Description

      Steps to reproduce

      1. Create a page with the following content:
        {{liveData source="liveTable" sourceParameters="className=XWiki.XWikiUsers" properties="doc.title,first_name,last_name"/}}
      2. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: