-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.0
-
Release Notes Summary:Columns in a table view are correctly selected when the columns have changed.
-
Tags:
-
Backlog priority:700
-
Sprint:UI - 2023-11, UI COOLDOWN - 2023-11, UI COOLDOWN - 2023-13, UI - 2023-13
-
Story Points:5
Steps to reproduce:
- deploy the attached jar webui-1283.jar to $NUXEO/nxserver/bundles
- log in as Administrator
- navigate to your personal workspace
- Press the + button and choose ProdFolder
- Set a title and create the document
- Press the + button and choose Produit
- Set a title, click on the Add button, fill all the fields (Classe, Initiator, Region, Branch, Status) and create the document
- Navigate back to the ProdFolder document
- Observe that 4 columns are displayed : Title, Modified, Last Contributor and InternalClass1
- Click on the Settings icon and add the State column. Click on Done. Now you have 5 columns
- Modify the file $NUXEO/nxserver/nuxeo.war/ui/document/prodfolder/nuxeo-prodfolder-view-layout.html with the content of the attached file nuxeo-prodfolder-view-layout.html => it adds more columns to this view and it simulates the fact that some developments will bring more columns to a Table view
- Force the reload of the page
- You should now see 6 columns : internalClass2 is added <= this sounds like the expected behavior because we have the 5 selected columns plus the new one which is not hidden by default
- Click on the Settings icon and uncheck all columns but Title
- Observe that only 1 column (Title) is now displayed
- Force the refresh of the page
- Observe that you still have 6 columns in the table
Go to the Console and see this error
Uncaught TypeError: e.columns[(intermediate value)] is undefined 29145/set settings/< http://localhost:8080/nuxeo/ui/main.bundle.js:3884 set settings http://localhost:8080/nuxeo/ui/main.bundle.js:3884 restoreSettings http://localhost:8080/nuxeo/ui/main.bundle.js:2168 r http://localhost:8080/nuxeo/ui/main.bundle.js:13271 fire http://localhost:8080/nuxeo/ui/main.bundle.js:13271 _load http://localhost:8080/nuxeo/ui/main.bundle.js:10554 reload http://localhost:8080/nuxeo/ui/main.bundle.js:10554 _timer http://localhost:8080/nuxeo/ui/main.bundle.js:13271 16896 http://localhost:8080/nuxeo/ui/main.bundle.js:13271 16896 http://localhost:8080/nuxeo/ui/main.bundle.js:13271 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 20672 http://localhost:8080/nuxeo/ui/main.bundle.js:13271 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 43584 http://localhost:8080/nuxeo/ui/main.bundle.js:13271 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 46674 http://localhost:8080/nuxeo/ui/main.bundle.js:13271 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 30818 http://localhost:8080/nuxeo/ui/main.bundle.js:13271 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 79193 http://localhost:8080/nuxeo/ui/main.bundle.js:13271 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 36037 http://localhost:8080/nuxeo/ui/main.bundle.js:2747 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 587 http://localhost:8080/nuxeo/ui/main.bundle.js:2718 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 54398 http://localhost:8080/nuxeo/ui/main.bundle.js:2747 __webpack_require__ http://localhost:8080/nuxeo/ui/main.bundle.js:13271 <anonymous> http://localhost:8080/nuxeo/ui/main.bundle.js:13271 <anonymous> http://localhost:8080/nuxeo/ui/main.bundle.js:13271 <anonymous> http://localhost:8080/nuxeo/ui/main.bundle.js:13271 main.bundle.js:3884:5458
Expected behavior: the new selected columns should be correctly stored to the local storage and the Table view should display the selected columns only
The implementation may require to detect that the amount of columns in the Table view has changed, hence setting new columns should clear the local storage
1.
|
QA-task | Resolved | pranit.sadashivsotre@contractors.onbase.com |