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

Dashboard edit title can be wrong if the content contains an element with a title class

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      Reproduction steps:

      1. Create a new page using the dashboard template.
      2. Add a new gadget and select the live data macro
      3. insert the gadget
      4. edit it again
      5. inspect the gadget title

      Expected Result:

      The title field contains

      $services.localization.render('rendering.macro.liveData.name')

      Actual Result:

      The title field contains

      <span class="fa fa-list-ul"></span> Properties 

      PS: Reproduced on 13.10.11 so likely not a regression

       

      Explanation:

      In dashboard.js, the title is retrieved by looking for the title class in the dashboard body. Any content containing an element with the same class can be used instead of the expected title.

      Attachments

        1. screenshot-1.png
          33 kB
          Farcasi Alexandru-Vicentiu

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              Farcasut Farcasi Alexandru-Vicentiu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: