From e631d508530842c2fb00ac74868dcd109840505e Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 22 Dec 2022 17:01:44 +0530 Subject: [PATCH] fix: delete old blocks from on issue update --- apiserver/plane/api/serializers/issue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apiserver/plane/api/serializers/issue.py b/apiserver/plane/api/serializers/issue.py index 3faa170fb..06795fd77 100644 --- a/apiserver/plane/api/serializers/issue.py +++ b/apiserver/plane/api/serializers/issue.py @@ -229,6 +229,7 @@ class IssueCreateSerializer(BaseSerializer): ) if blocks is not None: + IssueBlocker.objects.filter(blocked_by=instance).delete() IssueBlocker.objects.bulk_create( [ IssueBlocker(