-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.1.4, 3.0.30
-
Component/s: Widgets
-
Release Notes Summary:Document properties are correctly saved when the edit form contains a nuxeo-directory-radio-group element.
-
Tags:
-
Backlog priority:700
-
Sprint:UI - 2024-02
-
Story Points:2
Steps to reproduce:
- deploy the attached jar to nxserver/bundles and start Nuxeo
- navigate to your personal workspace
- create a RadioButtonDirectory document
- set the different fields and push the Create button
- observe that the document is created with the defined values
- edit the document
- set new values and save
- observe that the new values are not saved on the document <== this is the bug
If you open the Console, you'll see this Javascript error
954.bundle.js:3873 Uncaught TypeError: Cannot read properties of undefined (reading 'forEach') at e._updateSelected (954.bundle.js:3873:487) at Object.T [as fn] (main.bundle.js:13270:69925) at L (main.bundle.js:13270:69442) at e._propertiesChanged (main.bundle.js:13270:80713) at e._flushProperties (main.bundle.js:13270:61740) at l.__enableOrFlushClients (main.bundle.js:13270:79143) at l._flushClients (main.bundle.js:13270:78880) at l._propertiesChanged (main.bundle.js:13270:80667) at l._flushProperties (main.bundle.js:13270:61740) at l._invalidateProperties (main.bundle.js:13270:78698)
It seems that the call to Directory.SuggestEntries is done too late and this._entries is still null when this code is executed (where "this" is a "nuxeo-directory-radio-group" element)
Expected behavior: the edited values are correctly saved
There are no Sub-Tasks for this issue.