Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4835

Fix Designer not loading due to multivalued complex field in PP predicate

    XMLWordPrintable

    Details

    • Tags:
    • Sprint:
      NOS 10.3.2

      Description

      In Studio Modeler

      • Create a schema with a multivalued complex field, including a string sub field
      • Create a page provider with a predicate on the complex sub field

      So far predicate will look like schemaprefix:field/subfield = (something)

      • Save
        => A validation error is shown in Modeler
      Predicate references non-existent field schemaprefix:field/subfield
      
      • Go to Designer
        => Layouts fail loading
      nuxeo-view-designer.html:245636 Unhandled promise rejection TypeError: Cannot read property 'subFields' of undefined
          at nuxeo-view-designer.html:309523
          at Array.forEach (<anonymous>)
          at nuxeo-view-designer.html:309502
          at Array.forEach (<anonymous>)
          at nuxeo-view-designer.html:309498
          at Array.forEach (<anonymous>)
          at RegistryServiceRemote._appendPageProvidersSchemas (nuxeo-view-designer.html:309491)
          at RegistryServiceRemote._parseRegistries (nuxeo-view-designer.html:309325)
          at nuxeo-view-designer.html:309201
      

      Expected:

      • Designer should load
      • Error message should only be shown in modeler when relevant

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h