stable
Clone or download
fixes request #33323 Folder can no longer update its own properties
How to reproduce: Have custom properties defined in document administration Update properties of a folder A rest error is thrown: representation[metadata][0][recursion] is required. Other behavior to check: Have a folder with custom properties, add a new item inside => in modal parent properties are pre-filled You can still update any item properties Note: Vue3 changes behavior of element, in this case a key `recursion` was added at the update of object for everyproperties The object is a props who comes by `UpdateFolderPropertiesModal` without the key, I'm adding it in helper with JSON.parse(JSON.stringify in order to have a dedicated new object who do not share the pointer on properties parameter this new readonly behaviour display several warning in console: > vue.runtime.esm-bundler.js:368 [Vue warn] Set operation on key "value" failed: target is readonly. Change-Id: Ida85202aee0415735c50c6b753fc847da59c4c7f
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/document/jest.config.js | +1 | −0 | Go to diff View file |
M | plugins/document/package.json | +1 | −0 | Go to diff View file |
M | plugins/document/pnpm-lock.yaml | +592 | −0 | Go to diff View file |
A | plugins/document/scripts/document/FixJSDOMEnvironment.ts | +30 | −0 | Go to diff View file |
M | plugins/document/scripts/document/api/rest-querier.test.ts | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/api/rest-querier.ts | +2 | −3 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewFolderModal.vue | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemModal.vue | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/NewVersion/History/FileVersionHistory.test.ts | +2 | −4 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdateFolderPropertiesModal.test.js | +10 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdateFolderPropertiesModal.vue | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdatePropertiesModal.test.js | +1 | −0 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdatePropertiesModal.vue | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/FolderContent.test.js | +0 | −4 | Go to diff View file |
M | plugins/document/scripts/document/components/QuickLook/QuickLookDocumentProperties.test.ts | +2 | −10 | Go to diff View file |
M | plugins/document/scripts/document/helpers/properties-helpers/custom-properties-helper.test.ts | +26 | −21 | Go to diff View file |
M | plugins/document/scripts/document/helpers/properties-helpers/custom-properties-helper.ts | +16 | −4 | Go to diff View file |
M | plugins/document/scripts/document/helpers/properties-helpers/update-data-transformatter-helper.test.ts | +6 | −6 | Go to diff View file |
M | plugins/document/scripts/document/store/properties/properties-actions.test.ts | +6 | −7 | Go to diff View file |
M | plugins/document/scripts/document/store/properties/properties-actions.ts | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/type.ts | +3 | −6 | Go to diff View file |