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

Calling PropertyClass#setName should properly rename existing properties in belonging classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 17.7.0
    • Old Core
    • None
    • Unknown

    Description

      It might be tempting to call com.xpn.xwiki.objects.classes.PropertyClass.setName(name) to rename a property but this is likely to cause a serious mess.

      This method should probably be updated to allow renaming a property in existing classes, and trigger a migration of the instances of the related class upon saving.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rjakse Raphaƫl Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: