From 810c201018789a3f2c501d10f10f4c01716e108a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 13 Jun 2015 06:54:59 +0000 Subject: [PATCH] fixed wrong date for Fronleichnam 2016 for existing instances via DB update script --- calendar/setup/setup.inc.php | 2 +- calendar/setup/tables_update.inc.php | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/calendar/setup/setup.inc.php b/calendar/setup/setup.inc.php index 02e4478971..49700c032b 100755 --- a/calendar/setup/setup.inc.php +++ b/calendar/setup/setup.inc.php @@ -10,7 +10,7 @@ */ $setup_info['calendar']['name'] = 'calendar'; -$setup_info['calendar']['version'] = '14.2.002'; +$setup_info['calendar']['version'] = '14.2.003'; $setup_info['calendar']['app_order'] = 3; $setup_info['calendar']['enable'] = 1; $setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index&ajax=true'; diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index 15a6e7c7c0..1a786e8a47 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -2423,4 +2423,23 @@ WHERE recur_type=5 AND cal.range_end IS NOT NULL AND ABS(cal.cal_modified-$value } } return $GLOBALS['setup_info']['calendar']['currentver'] = '14.2.002'; -} \ No newline at end of file +} + +/** + * Fix wrong date for 2016 DE holiday Fronleichnam + * + * @return string + */ +function calendar_upgrade14_2_002() +{ + $GLOBALS['egw_setup']->db->update('egw_cal_holidays', array( + 'hol_mday' => 26, + 'hol_month_num' => 5 + ), array( + 'hol_locale' => 'DE', + 'hol_name' => 'Fronleichnam', + 'hol_occurence' => 2016, + ), __LINE__, __FILE__, 'calendar'); + + return $GLOBALS['setup_info']['calendar']['currentver'] = '14.2.003'; +}