Files
wekan/server
Lauri Ojansivu 742996dcce Deleting a checklist deletes its items.
Every way to delete a checklist - the card's checklist menu, DELETE
/api/boards/:boardId/cards/:cardId/checklists/:checklistId, the
removeChecklist rule action and the durable rule plans - removed only the
checklist document; Checklists.before.remove writes the removeChecklist
activity and nothing else. Every item stayed in the database with a
checklistId pointing nowhere: invisible on the card and never cleaned
up. One production database had 2335 of them from 690 deleted
checklists.

Checklists.after.remove now removes the checklist's items with
ChecklistItems.direct.removeAsync, as deleting a card already removes
its children: no activity per item, the checklist's own removeChecklist
activity records the deletion. Items orphaned before this are left for
the administrator to decide. From the reporter's patch.

Thanks to Raymond-Voogt and xet7 !

Fixes #6816.
2026-10-27 15:06:32 +02:00
..
2026-03-22 17:17:48 +02:00
2021-06-14 15:11:21 +02:00