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

Macro with a mandatory parameter of type enum with a default value cannot be inserted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 12.4-rc-1
    • None
    • Unknown

    Description

      When defining a macro with a parameters with the following properties:

      • mandatory: Yes
      • parameter default value non null (for instance SAFE)
      • parameter type = fqn of an Java enum (for instance org.xwiki.annotation.maintainer.AnnotationState)

      Trying  to insert a macro with such parameter using the rich editor do not allow the insertion of the macro when the default value of the field is selected (it's working with the other values of the enum).

      Inserting the macro manually displays it properly.

       

      To reproduce, see the attached xar.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: