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

removeObject in XWikiDocument does not search for the object correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.9.2, 2.0 M2
    • 1.8.3, 1.9 M2
    • {Unused} Core
    • None
    • Unit
    • Unknown

    Description

      The removeObject function looks the object by using getNumber() on the object removed and uses this as the index.
      In some cases the index is not the object number. We should look by indexOf(obj) instead

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: