mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
do not set a not set birthday preference to "none"
This commit is contained in:
parent
b58b9d06b9
commit
3937c9f2b6
@ -2759,6 +2759,7 @@ function calendar_upgrade17_1()
|
|||||||
{
|
{
|
||||||
// Update birthdays as events preference from boolean
|
// Update birthdays as events preference from boolean
|
||||||
$change = function($attr, $old_value, $owner) {
|
$change = function($attr, $old_value, $owner) {
|
||||||
|
if (!isset($old_value)) return null; // do not set anything, if nothing was set before
|
||||||
return $old_value ? 'birthday' : 'none';
|
return $old_value ? 'birthday' : 'none';
|
||||||
};
|
};
|
||||||
Api\Preferences::change_preference('calendar', 'birthdays_as_events', $change);
|
Api\Preferences::change_preference('calendar', 'birthdays_as_events', $change);
|
||||||
|
Loading…
Reference in New Issue
Block a user