coopcycle-web icon indicating copy to clipboard operation
coopcycle-web copied to clipboard

When an admin deletes a package set of which a package is linked to a task then it fails

Open Atala opened this issue 1 year ago • 1 comments

The task is linked to the package The package set deletion cascades to the packages Deletion of the package fails because it is is linked to a task

https://coopcycle.sentry.io/issues/5288895928/?project=5294179&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=24h&stream_index=0

-> so when we delete package set it should SET_NULL on package but not delete PACKAGE

TO TEST with package set named 1 on eraman instance

Atala avatar May 14 '24 13:05 Atala

linked to #4199

Atala avatar May 14 '24 13:05 Atala

🥳

Paul-Eraman-CoopCycle avatar May 21 '24 14:05 Paul-Eraman-CoopCycle