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

Title not scaffolded as required by View Designer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 73.13.2
    • Fix Version/s: None
    • Component/s: Studio Designer

      Description

      Steps to reproduce:

      • Create a custom document type in Nuxeo Studio
      • Access to View Designer
      • Configure "create" view for a custom document
      • The view is scaffolded as follows:
      nuxeo-commercialresearch-create-layout.html
      <!--
      `nuxeo-commercialresearch-create-layout`
      @group Nuxeo UI
      @element nuxeo-commercialresearch-create-layout
      -->
      <dom-module id="nuxeo-commercialresearch-create-layout">
        <template>
          <style>
            *[role=widget] {
              padding: 5px;
            }
          </style>
          <nuxeo-input role="widget" value="{{document.properties.dc:title}}" label="Title" type="text"></nuxeo-input>
      
        </template>
      
        <script>
        Polymer({
          is: 'nuxeo-commercialresearch-create-layout',
          behaviors: [Nuxeo.LayoutBehavior],
          properties: {
      
            /**
               * @doctype CommercialResearch
               */
            document: {
              type: Object,
            },
      
          }
        });
        </script>
      </dom-module>
      

      NOTE: Title is a required field, but is not set a required

      • Deploy your changes in your instances
      • Create a new document of your custom document type, providing all the fiels marked as required
      • Click on Create button

      The document is not created and this error message appears in the browser console:

      elements.html:122427 Uncaught TypeError: Cannot read property 'replace' of null
          at HTMLElement._sanitizeName (elements.html:122427)
          at HTMLElement._create (elements.html:122790)
          at HTMLElement.handler (elements.html:2624)
          at Object._fire (elements.html:7787)
          at Object.forward (elements.html:8185)
          at Object.click (elements.html:8148)
          at HTMLElement._handleNative (elements.html:7565)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: