Opened 9 years ago
Closed 9 years ago
#1953 closed defect (fixed)
Trashcan.delete() does not preserve the currently active project
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | major | Milestone: | BASE 3.5.3 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
The trashcan functionality internally starts a secondary session for the same user which is used for the actual deletion of items (see #1667). The active project on the main session (if any) is never transferred to the secondary session.
This is normally not any problem since in the BASE gui a user can only use the trashcan functionality on items that is owned by the user itself.
However, custom code may try to use the trashcan functionality with items that are owned by different users and shared via a project. This will fail to delete all items since the secondary session may not have access to all items due to the project not being active.
(In [6948]) Fixes #1953: Trashcan.delete() does not preserve the currently active project
The secondary session is now activated with the same project as the main session has active (if any).