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

Changes of property values for objects are not showing the display and translated values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.4.3
    • None
    • Unknown

    Description

      When using the changes between documents where object properties have changed, we are neither showing the display value (for DBList or StaticList) neither using the translation for the property names or values.

      With the following code in replacement of displayPropertyChange for the ObjectDiff we get the propert display:

      #macro(displayObjectPropertyChange $diff $propertyName $propertyDisplay)
        <tr>
          <td>$newdoc.displayPrettyName($diff.propName)</td>
          <td>
      #set($ok = $origdoc.use($diff.className,$diff.getNumber()))
      $origdoc.display($diff.propName)
          </td>
          <td>
      #set($ok = $newdoc.use($diff.className,$diff.getNumber()))
      $newdoc.display($diff.propName)
          </td>
        </tr>
      #end
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: