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

Inconsistent way to display hints in case of object editor and configurable class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 13.7
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Apparently Object editor and Configurable Class macros are not using the same translation key suffix to display hint of fields, which leads to different behaviour based on the translation key chosen.

      Reproduction step:

      • Create a terminal page "Foo" with an xclass containing a String property "bar"
      • Create a configurable class object for this xclass, at this point you should be able to configure the property "bar" from Administration
      • Create a translation page and put:
        Foo_bar=Bar property name
        Foo_bar_hint=Bar property hint
        
      • Edit the property bar and add a hint "Hint from the xclass"
      • Create an xobject of type Foo
      • Check how bar property is displayed in object editor and in administration page

      Expected result:

      • Bar is displayed the same in both page, and should use the translation, so the hint should display "Bar property hint" in both editors

      Obtained result:

      • The administration page doesn't display any hint. Object editor display the hint provided in translation. At this point, if you edit the translation key to use Foo_bar.hint you'll see the following behaviour:
      • the administration page will display the hint from the translation
      • the object editor will display the hint from the xclass

      I'm not entirely sure what should be the expected result here, if we should use .hint preferably than _hint but IMO both editors should behave the same.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: