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

SkinAction should use the first XWikiSkins object found in the document, not just the one with number 0

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3 M1
    • Fix Version/s: 1.3 M2
    • Labels:
      None
    • Similar issues:

      Description

      Currently, it gets the object with:
      doc.getObject("XWiki.XWikiSkins", 0);
      which forces the object with number 0 to be considered. However, if a user deletes that object an creates another one, it will have number 1, and thus it will never be possible to use it.

      Instead, it should use the getObject method that does not have a number argument.

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: