fixed wrong date for Fronleichnam 2016 for existing instances via DB update script

This commit is contained in:
Ralf Becker 2015-06-13 06:56:26 +00:00
parent f1bbdb4e8d
commit 0a09f08d72
2 changed files with 21 additions and 2 deletions

View File

@ -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';

View File

@ -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';
}
}
/**
* 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';
}