From 251ab805d0d071c5116ee931d0583b04f53febde Mon Sep 17 00:00:00 2001 From: Charles Farmer Date: Fri, 28 Dec 2018 16:53:33 -0500 Subject: [PATCH] Bug 17015: (follow-up) Fixes a holiday bug when going from 'none' to 'empty' --- Koha/DiscreteCalendar.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/DiscreteCalendar.pm b/Koha/DiscreteCalendar.pm index 5914f0a..1245bde 100644 --- a/Koha/DiscreteCalendar.pm +++ b/Koha/DiscreteCalendar.pm @@ -619,6 +619,7 @@ sub edit_holiday { $updateValues{holiday_type} =''; $updateValues{is_opened} =1; }else{ + delete $updateValues{is_opened}; delete $updateValues{holiday_type}; } @@ -1311,4 +1312,4 @@ sub addDays { return $base_date; } -1; \ No newline at end of file +1; -- 2.7.4