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

XWikiDocument.getXObject(EntityReference, int, boolean, XWikiContext) ignores the given number when checking for an existing object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 13.10.1, 14.0-rc-1
    • 7.3-milestone-1
    • Old Core
    • None
    • Unit
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      XWikiDocument.getXObject(EntityReference, int, boolean, XWikiContext) simply checks if there is any XObject for the given class and returns it instead of checking if there is one with the given number. Consequently, objects are also only created when there is no existing object of the given class.

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: