-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Duplicate
-
Affects Version/s: 1.0.1
-
Fix Version/s: QualifiedToSchedule
-
Component/s: UI
-
Tags:
Steps to reproduce:
- Create a custom schema in Studio
name type Multivalued codigo String Yes
- Associate the schema with a document type
- Generate the view layout for the document type in View Designer
- This code is generated:
<nuxeo-data-table items="{{document.properties.telcofactura_schema:codigo}}" orderable="true" editable="true" role="widget" size="0"> <nuxeo-data-table-column name="Codigo"> <template> [[item]] </template> </nuxeo-data-table-column> <nuxeo-data-table-form> <template> <nuxeo-input value="{{item}}" label="Codigo" type="text"></nuxeo-input> </template> </nuxeo-data-table-form> </nuxeo-data-table>
- Save changes
- Deploy on your instance
- Create a new document
When you try to add a new value nothing happens. This error is shown in the browser console:
elements.html:39069 Uncaught TypeError: Cannot read property 'length' of undefined at HTMLElement._createEntry (elements.html:39069) at handler (elements.html:3614) at HTMLElement.decorated (elements.html:7571) at HTMLElement.fire (elements.html:4391) at Object.fire (elements.html:3963) at Object.forward (elements.html:4260) at Object.click (elements.html:4245) at HTMLElement.handleNative (elements.html:3853)
NOTE: * Nuxeo 8.10, 9.2 and 9.3 used in this test
- duplicates
-
ELEMENTS-470 Fix multi-value string data table
- Resolved