-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.4.0
-
Fix Version/s: None
-
Component/s: Web UI
-
Tags:
-
Backlog priority:700
-
Sprint:UI - 2022-01, UI Cooldown - 2022-01
Steps to observe this behavior:
- edit nxserver/nuxeo.war/ui/document/file/nuxeo-file-edit-layout.html and add these lines
observers: [ '_titleChanged(document.properties.dc:title)', ], _titleChanged: function() { if(this.document) { alert("dc:title has changed"); } }, validate: function() { alert("Validation is done"); return true; },
- force reload the Web UI
- navigate to a File document and open the Edit form
- change the title, observe the alert
- submit the Edit form for a File document
- Observe that the validation alert is displayed twice and the observer alert is also displayed twice
Even if these methods should be idempotent, this double trigger could bring to a global performance issue when a form has many observers