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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 12.4-rc-1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: