From 53c827e134e04ad07d049b573ceee1fdb624ef05 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Thu, 21 Oct 2021 23:49:37 +0200 Subject: [PATCH] Card dates, if deleted rules didn't apply on "unset date fields" --- client/components/cards/cardDate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js index 87b12b659..685f79e3a 100644 --- a/client/components/cards/cardDate.js +++ b/client/components/cards/cardDate.js @@ -24,7 +24,7 @@ Template.dateBadge.helpers({ } _deleteDate() { - this.card.setReceived(null); + this.card.unsetReceived(); } }.register('editCardReceivedDatePopup')); @@ -50,7 +50,7 @@ Template.dateBadge.helpers({ } _deleteDate() { - this.card.setStart(null); + this.card.unsetStart(); } }.register('editCardStartDatePopup')); @@ -73,7 +73,7 @@ Template.dateBadge.helpers({ } _deleteDate() { - this.card.setDue(null); + this.card.unsetDue(); } }.register('editCardDueDatePopup')); @@ -96,7 +96,7 @@ Template.dateBadge.helpers({ } _deleteDate() { - this.card.setEnd(null); + this.card.unsetEnd(); } }.register('editCardEndDatePopup'));