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

[Referencing contents] Error on externalizable data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.2, 4.9.0
    • None
    • None
    • None

      How to reproduce:

      • In program content type, add a widget param named allowSearchOnContentsWithSameReferencing to true on an attribute (ex: domain)
      • Start your ODF template
      • Search for programs and select a program with externalizable data (including your attribute)
      • There is a button with magnifying glass, opening the referencing contents tool => OK
      • Click on the button, there is an error (java and JS, due to the java one) => KO

      Trance of java error:

      Caused by: org.ametys.runtime.model.exception.UndefinedItemPathException: Unable to retrieve the model item at path 'domain_local'. This path is not defined by the model.
          at org.ametys.runtime.model.ModelHelper.getModelItem(ModelHelper.java:118)
          at org.ametys.cms.content.referencetable.search.ReferencingContentsWithSameValuesSearchUIModel.getResultItems(ReferencingContentsWithSameValuesSearchUIModel.java:303)
          at org.ametys.cms.search.model.SearchModelHelper.getSearchModelInfo(SearchModelHelper.java:191)
          at org.ametys.cms.search.model.SearchModelHelper.getSearchModelConfiguration(SearchModelHelper.java:99)
          ... 105 more

      Trace of JS error:

      ServerComm.js:1330 Uncaught TypeError: Cannot read properties of undefined (reading 'refContentType')
          at constructor._updateInfos (SearchReferencingContentsWithSameValuesTool.js:89:46)
          at constructor.<anonymous> (ServerComm.js:675:33)
          at Array.forEach (<anonymous>)
          at ExtArray.forEach (ext-all.js:3346:23)
          at constructor._callProcessed (ServerComm.js:672:23)
          at constructor.<anonymous> (ServerComm.js:1324:54)
          at Array.forEach (<anonymous>)
          at ExtArray.forEach (ext-all.js:3346:23)
          at constructor._dispatch (ServerComm.js:1319:35)
          at constructor._onRequestComplete (ServerComm.js:1090:22)

            Unassigned Unassigned
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: