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

Impossible to open a form with an input using code widget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.8.0, 4.7.10
    • None
    • None
    • None
    • 4.8.0 M10

      In an extraction, I try to edit an existing query but I get the following error (on CMS side):

      TypeError: field.getActiveWarnings is not a function
      _onFieldChange@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:1809:36
      fire@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:22906:42
      doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23946:47
      doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:75015:48
      monitor/prototype.doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:66512:31
      fireEventArgs@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23800:26
      fireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23757:25
      _initializeCodeMirror/<@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/form/field/Code.js:314:59
      signalLater/loop/<@http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:2080:45
      fireCallbacksForOps@http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:2037:24
      finishOperation@http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:2051:30
      endOperation@http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:3791:30
      docMethodOp/<@http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:3947:29
      CodeMirror.prototype[prop]@http://localhost:8080/cms/plugins/codemirror/resources/js/codemirror.js:9796:40
      setValue@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/form/field/Code.js:192:30
      _init@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/form/field/Code.js:208:18
      fire@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:22906:42
      doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23946:47
      doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:75015:48
      monitor/prototype.doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:66512:31
      fireEventArgs@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23800:26
      fireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23757:25
      _initializeCodeMirror@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/form/field/Code.js:316:16
      _onRender@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/form/field/Code.js:219:14
      fire@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:22906:42
      doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23946:47
      doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:75015:48
      monitor/prototype.doFireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:66512:31
      fireEventArgs@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23800:26
      fireEvent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:23757:25
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:71133:20
      finishRenderItems@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158171:22
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158637:12
      finishRenderChildren@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:162330:24
      afterRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:70405:12
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:71135:16
      finishRenderItems@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158171:22
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158637:12
      finishRenderChildren@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:162330:24
      afterRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:70405:12
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:71135:16
      finishRenderItems@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158171:22
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158637:12
      finishRenderChildren@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:162330:24
      afterRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:70405:12
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:71135:16
      finishRenderItems@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158171:22
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158637:12
      finishRenderChildren@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:162330:24
      afterRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:70405:12
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:71135:16
      finishRenderItems@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158171:22
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:158637:12
      finishRenderChildren@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:162330:24
      afterRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:70405:12
      callParent@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:13649:32
      afterRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:189965:12
      finishRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:71135:16
      render@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:70878:16
      doAutoRender@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:70973:24
      show@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:77207:24
      _configureFormCb@http://localhost:8080/cms/plugins/extraction/resources/js/Ametys/plugins/extraction/edition/EditExtractionNodeDialog.js:181:19
      _callProcessed/<@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:675:33
      ExtArray.forEach<@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:3346:23
      _callProcessed@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:672:23
      _dispatch/<@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:1324:54
      ExtArray.forEach<@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:3346:23
      _dispatch@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:1319:35
      _onRequestComplete@http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:1090:22
      callback@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:9638:39
      onComplete@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:28415:21
      onStateChange@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:28372:16
      bindStateChange/</<@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:28362:20
      elevate@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:2574:57
      bindStateChange/<@http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:28361:17

      Reproductible avec cette extraction :

      <?xml version="1.0" encoding="UTF-8"?><extraction>
          <query tagName="query" contentTypes="org.ametys.plugins.odf.Content.program">
              <columns>
                  <column>title</column>
              </columns>
              <count tagName="nbELPs" contentTypes="org.ametys.plugins.odf.Content.course">
                  <clauses>
                      <clause>parentPrograms_s:${..}</clause>
                  </clauses>
              </count>
          </query>
      </extraction>

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

              Created:
              Updated:
              Resolved: