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

Disabled conditions on new repeater entry with a richtext

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0, 4.7.7
    • None
    • None
    • None
    • 4.8.0 M7

      Steps to reproduce

      1. Having a content type with: one boolean and two richtexts with a disabled condition on the richtexts depending of the boolean (here it is a negative disabling), like :
                <attribute name="alineas" type="repeater" initial-size="0" min-size="0">
                    <label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEAS_LABEL</label>
                    <description i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEAS_DESC</description>
                    <add-label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEAS_ADD</add-label>
                    <del-label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEAS_DELETE</del-label>
                    
                    <attribute name="code" type="string">
                        <label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_CODE_LABEL</label>
                        <description i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_CODE_DESC</description>
                        <widget>edition.hidden</widget>
                        <validation>
                            <mandatory />
                        </validation>
                        <restrict-to>
                            <workflow read-write-direction="write" step="-1"/>
                        </restrict-to>
                    </attribute>
                    <attribute name="archived" type="boolean">
                        <label i18n="true">plugin.cms:PLUGINS_CMS_ARCHIVED_ATTRIBUTE_LABEL</label>
                        <description i18n="true">plugin.cms:PLUGINS_CMS_ARCHIVED_ATTRIBUTE_DESC</description>
                        <default-value>false</default-value>
                    </attribute>
                    <attribute name="text" type="rich-text">
                        <label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_TEXT_LABEL</label>
                        <description i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_TEXT_DESC</description>
                        <widget-params>
                            <param name="height">200</param>
                        </widget-params>
                        <validation>
                            <mandatory />
                        </validation>
                    </attribute>
                    <attribute name="isDerogable" type="boolean">
                        <label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_IS_DEROGABLE_LABEL</label>
                        <description i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_IS_DEROGABLE_DESC</description>
                    </attribute>
                    <attribute name="helpTextDerogation" type="rich-text">
                        <label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_HELP_TEXT_DEROGATION_LABEL</label>
                        <description i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_HELP_TEXT_DEROGATION_DESC</description>
                        <widget-params>
                            <param name="height">100</param>
                        </widget-params>
                        <disable-conditions>
                            <condition id="isDerogable" operator="neq">true</condition>
                        </disable-conditions>
                    </attribute>
                    <attribute name="helpTextMotivation" type="rich-text">
                        <label i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_HELP_TEXT_MOTIVATION_LABEL</label>
                        <description i18n="true">PLUGINS_ODF_PILOTAGE_RG_ALINEA_HELP_TEXT_MOTIVATION_DESC</description>
                        <widget-params>
                            <param name="height">100</param>
                        </widget-params>
                        <disable-conditions>
                            <condition id="isDerogable" operator="neq">true</condition>
                        </disable-conditions>
                    </attribute>
                </attribute>
      2. Create or open a content of this type
      3. Create a new repeater entry.
      4. The first disabled rich text has a disabled style but is editable and no effect on the second rich text. In the example below, the condition is based on "Dérogation possible" unchecked, on the both richtexts "Consigne...".
      5. Already existing entries are fine.
      6. Checking and unchecking the checkbox has no effect.

            raphael Raphaël Franchet
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: