* Calendar: fixed deleting exceptions while editing a series

This commit is contained in:
Ralf Becker 2015-02-06 09:48:20 +00:00
parent 0ee55af1bd
commit 171064c0c1

View File

@ -218,6 +218,8 @@ class calendar_uiforms extends calendar_ui
if ($content['recur_exception']['delete_exception'])
{
list($date) = each($content['recur_exception']['delete_exception']);
// eT2 converts time to
if (!is_numeric($date)) $date = egw_time::to (str_replace('Z','', $date), 'ts');
unset($content['recur_exception']['delete_exception']);
if (($key = array_search($date,$content['recur_exception'])) !== false)
{
@ -1476,6 +1478,11 @@ class calendar_uiforms extends calendar_ui
"+'&exec[event_id]=".$content['id']."'"."+'&exec[show_conflict]=".
(($this->cal_prefs['defaultresource_sel'] == 'resources_without_conflict')? '0':'1')."'";
}
// check if current pref. is an allowed application for the user
if (!isset($GLOBALS['egw_info']['user']['apps'][$content['participants']['resource']['default_sel']]))
{
$content['participants']['resource']['default_sel'] = 'home-accounts';
}
}
$content['participants']['status_date'] = $preserv['actual_date'];
$preserv = array_merge($preserv,$content);