-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 2.2.0
-
Fix Version/s: 2.2.23
-
Component/s: UI
-
Release Notes Summary:Subfields of a complex field are validated when editing a nuxeo-data-table.
-
Tags:
-
Backlog priority:700
-
Browser:
-
Sprint:nxGang Sprint 10.10.2
-
Story Points:3
Steps to reproduce:
- Create a custom schema called *answers:
Fiel Subfield Type Multi-valued Required answers Complex true text String true correct Boolean - Associate the schema to a document type
- Configure the views for the document type.
- View Designer scaffol the required, multi-valued, complex fields as follows:
<nuxeo-data-table role="widget" items="{{document.properties.answers:answers}}" orderable="true" editable="true" scroll-throttle="60" max-items="10000" size="0"> <nuxeo-data-table-column name="Text"> <template> [[item.text]] </template> </nuxeo-data-table-column> <nuxeo-data-table-column name="Correct"> <template> [[item.correct]] </template> </nuxeo-data-table-column> <nuxeo-data-table-form> <template> <nuxeo-input value="{{item.text}}" label="Text" type="text" required="true" ></nuxeo-input> <paper-checkbox checked="{{item.correct}}"></paper-checkbox> </template> </nuxeo-data-table-form> </nuxeo-data-table>
When you edit an existing document the "Save" button nothing happens. The validation method is expecting that the required nuxeo-input field has a value, even if you have modified other fields and you don't need to edit this field.
<nuxeo-input value="{{item.text}}" label="Text" type="text" required="true" ></nuxeo-input>
If you edit some of the entries in the table the nuxeo-input has a value and the editing operation it works.
- depends on
-
ELEMENTS-552 Handle required constraint in nuxeo-data-table element
- Resolved
- duplicates
-
ELEMENTS-633 Required in data table form fields causes table validation to fail
- Resolved
- is related to
-
NXS-4852 Required directory field validation fails in Server side on document creation
- Resolved