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

[ConfigurableFormPanel] Issue on disable conditions if the field name prefix does not end by the default path separator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.8.0
    • 4.2.0
    • None
    • None
    • 4.8.0 M9
    • 1 - Middle term
    • 2 - Normal

      How to reproduce:

      • Configure a ConfigurableFormPanel with:
        • a simple field at root (no composite or repeater) (ex: 'field1')
        • a field with a disable condition on the first parameter (ex: 'field2')
        • a defaultPathSeparator (ex: '-')
        • a fieldNamePrefix that does not end by the configured defaultPathSeparator (ex: 'service.param.')
      • Try to open the configurableFormPanel => KO, there is an error in the ConfigurableFormPanel.getRelativeField because the field searched for the disable condition is not found. In our example, it will search the field 'field1' instead of 'service.param-field1'

      In the getRelativeField method, see prefix computation.

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

              Created:
              Updated:
              Resolved: