Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1713

Fix nuxeo-directory-radio-group in Edit mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.4, 3.0.30
    • Fix Version/s: 3.1.6, 3.0.31
    • Component/s: Widgets
    • Release Notes Summary:
      Document properties are correctly saved when the edit form contains a nuxeo-directory-radio-group element.
    • Backlog priority:
      700
    • Sprint:
      UI - 2024-02
    • Story Points:
      2

      Description

      Steps to reproduce:

      1. deploy the attached jar to nxserver/bundles and start Nuxeo
      2. navigate to your personal workspace
      3. create a RadioButtonDirectory document
      4. set the different fields and push the Create button
      5. observe that the document is created with the defined values
      6. edit the document
      7. set new values and save
      8. 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

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: