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

Disable conditions on repeater before a referenced field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.0
    • 4.8.0
    • None
    • None
    • 4.8.0 M11

      I have two fields :

      • a boolean
      • a repeater with a disable condition on the boolean

      But I put them in the default-edition view like this:

      • repeater
      • boolean

      Then, on opening the edit form, I get an error, the form is not loaded because of null field at line 4038 of the ConfigurableFormPanel.js.

      <attribute name="myBoolean" type="boolean">
          <label i18n="false">My boolean</label>
          <description i18n="false">My boolean</description>
      </attribute>
      
      <attribute name="myRepeater" type="repeater" initial-size="0">
          <label i18n="false">My repeater</label>
          <description i18n="false">My repeater</description>
          <add-label i18n="false">Add</add-label>
          <del-label i18n="false">Remove</del-label>
          <attribute name="aString" type="string">
          <label i18n="false">A string</label>
          <description i18n="false">A A string</description>
          </attribute>
          <attribute name="aDouble" type="double">
          <label i18n="false">A double</label>
          <description i18n="false">A My double</description>
          </attribute>
          <disable-conditions>
              <condition id="myBoolean" operator="eq">false</condition>
          </disable-conditions>
      </attribute>
      
      <view name="default-edition">
          <item ref="title"/>
          <item ref="myRepeater/*"/>
          <item ref="myBoolean"/>
      </view>

            cbayle Caroline Bayle
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: