mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Calendar - add update to deal with birthdays_as_events preference staying at FALSE for all users
This commit is contained in:
parent
470b989672
commit
3fa29a542d
@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$setup_info['calendar']['name'] = 'calendar';
|
$setup_info['calendar']['name'] = 'calendar';
|
||||||
$setup_info['calendar']['version'] = '17.1';
|
$setup_info['calendar']['version'] = '17.1.001';
|
||||||
$setup_info['calendar']['app_order'] = 3;
|
$setup_info['calendar']['app_order'] = 3;
|
||||||
$setup_info['calendar']['enable'] = 1;
|
$setup_info['calendar']['enable'] = 1;
|
||||||
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index&ajax=true';
|
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index&ajax=true';
|
||||||
|
@ -2754,3 +2754,13 @@ function calendar_upgrade16_1_003()
|
|||||||
{
|
{
|
||||||
return $GLOBALS['setup_info']['calendar']['currentver'] = '17.1';
|
return $GLOBALS['setup_info']['calendar']['currentver'] = '17.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function calendar_upgrade17_1()
|
||||||
|
{
|
||||||
|
// Update birthdays as events preference from boolean
|
||||||
|
$change = function($attr, $old_value, $owner) {
|
||||||
|
return $old_value ? 'birthday' : '0';
|
||||||
|
};
|
||||||
|
Api\Preferences::change_preference('calendar', 'birthdays_as_events', $change);
|
||||||
|
return $GLOBALS['setup_info']['calendar']['currentver'] = '17.1.001';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user