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

Error in JS console for CFP with reference attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.9.1, 4.10.0
    • 4.9.0, 4.10.0
    • None
    • None
    • 4.9.1
    • Oui

      I have the following error JS console when opening a CFP with a reference attribute containing a value :

      [E] Ext.JSON.decode(): You're trying to decode an invalid JSON String: https://mybeautifulurl.local ext-all.js:10401:31
          ExtJS 4
          setValue http://<redacted>/plugins/core-ui/resources/js/Ametys/form/widget/DefaultWidgets.js:869
          _setValuesXMLMetadata http://<redacted>/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:3488
          _setValuesXML http://<redacted>/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:3216
          setValues http://<redacted>/plugins/core-ui/resources/js/Ametys/form/ConfigurableFormPanel.js:3106
          Function ExtJS
          _fillEditionForm http://<redacted>/plugins/cms/resources/js/Ametys/plugins/cms/content/tool/ContentTool.js:1093
      

      This seems to be a conflict between the CFP that extract the value from the provided JSON value and the Ametys.form.widget.UrlReference widget that expect the complete JSON

            ggouin Guillaume Gouin
            ggouin Guillaume Gouin
            Guillaume Gouin Guillaume Gouin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: