Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3039

Make the repeater add-label, edit-label and del-label optional

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.0
    • None
    • None
    • None
    • 4.3 M1

      When declaring a repeater, add-label, edit-label and del-label configuration are mandatory.

      If not declared, we enter in safe-mode with the following error

      Caused by: org.apache.avalon.framework.configuration.ConfigurationException: No value is associated with the configuration element "add-label" at <generated>file:///D:/Dev/Ametys/plugins/user-directory/master/main/plugin-user-directory/services/user-signup.xml:189:83
      	at org.apache.avalon.framework.configuration.DefaultConfiguration.getValue(DefaultConfiguration.java:215)
      	at org.ametys.runtime.i18n.I18nizableText.parseI18nizableText(I18nizableText.java:585)
      	at org.ametys.runtime.model.AbstractModelItemParser._parseI18nizableText(AbstractModelItemParser.java:101)
      	at org.ametys.plugins.repository.model.parsing.RepeaterDefinitionParser.parse(RepeaterDefinitionParser.java:37)
      	at org.ametys.web.service.StaticService._parseRepeater(StaticService.java:366)
      

      To simplify model declaration, can we make these elements not mandatory and use default values (add / modify / delete) when they are absent?

          [RUNTIME-3039] Make the repeater add-label, edit-label and del-label optional

          There are no comments yet on this issue.

            cbayle Caroline Bayle
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: