Calendar - add a update to handle old 'resources' preference

This commit is contained in:
nathangray 2018-11-30 13:07:30 -07:00
parent 211a8e5251
commit 5e2202788a
2 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,7 @@
*/
$setup_info['calendar']['name'] = 'calendar';
$setup_info['calendar']['version'] = '17.1.001';
$setup_info['calendar']['version'] = '17.1.002';
$setup_info['calendar']['app_order'] = 3;
$setup_info['calendar']['enable'] = 1;
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index&ajax=true';

View File

@ -2764,4 +2764,11 @@ function calendar_upgrade17_1()
};
Api\Preferences::change_preference('calendar', 'birthdays_as_events', $change);
return $GLOBALS['setup_info']['calendar']['currentver'] = '17.1.001';
}
function calendar_upgrade17_1_001()
{
// Update resources preference
Api\Preferences::change_preference('calendar', 'defaultresource_sel', 'resources_conflict', 'resources');
return $GLOBALS['setup_info']['calendar']['currentver'] = '17.1.002';
}