Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11969

[Disable conditions] Conditions on a repeater or composite pointing to a linked content leads to an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • 4.8.0
    • None
    • None
    • 4.8.0 M9

      Dans le course.xml, nous avons maintenant le mccRegime sous forme de table de référence défini comme suit :

      <attribute name="mccRegime" type="content" contentType="odf-enumeration.MccRegime">

      J'ai ajouté une disable-condition sur le repeater mccSession2 :

      <disable-conditions type="or"> <condition id="isEvaluated" operator="eq">false</condition> <condition id="mccRegime/code" operator="eq">CCI</condition> </disable-conditions>

      Quand j'ouvre un ELP en modification, je rencontre cette erreur :

      TypeError: Cannot read properties of null (reading 'on') TypeError: Cannot read properties of null (reading 'on') at constructor._addDisableConditionsListeners (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:3972:39) at constructor._addRepeater (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:2153:18) at constructor._configureRepeaterJSON (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:2644:14) at constructor._configureJSON (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:2457:26) at constructor._configureTabsJSON (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:2862:22) at constructor._configureJSON (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:2466:14) at constructor.configure (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:2372:14) at constructor.configure (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/extjs7/resources/ext-all.js:7497:94) at constructor._drawEditionForm (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/cms/resources/js/Ametys/plugins/cms/content/tool/ContentTool.js:884:23) at constructor.<anonymous> (http://odfweb1b.adele.anyware.corp:10007/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:625:33)

            cbayle Caroline Bayle
            mfranchet Magali Franchet
            Caroline Bayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: