From 3ad3c7e9b299fc2b4efae1425811dd4b5f3ca90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Thu, 15 Feb 2024 12:30:44 +0100 Subject: [PATCH] fix(recurrentEvent): update except on repetition change --- tools/bazar/presentation/javascripts/recurrent-event.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/bazar/presentation/javascripts/recurrent-event.js b/tools/bazar/presentation/javascripts/recurrent-event.js index 7bd2cf720..116aeffce 100644 --- a/tools/bazar/presentation/javascripts/recurrent-event.js +++ b/tools/bazar/presentation/javascripts/recurrent-event.js @@ -357,6 +357,8 @@ let appParams = { if (limitdate && 'value' in this.datePickerForLimit){ this.datePickerForLimit.value = limitdate this.updateEndDateLimitTime() + } else { + this.updateAvailableExcept() } if (data?.isRecurrent !== '1'){ this.recurrenceBaseId = ( @@ -412,6 +414,7 @@ let appParams = { if (repetition !== 'w' && this.days?.length > 1){ this.days = [this.days[0]] } + this.updateAvailableExceptUpdatingNbMax() }, repetitionInternal(){ this.setCurrentDayIfWeek()