mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 03:11:48 +02:00
Do not check for conflicts when changing status via ajax
This commit is contained in:
parent
786cfbb040
commit
cbf2497d58
@ -2915,28 +2915,11 @@ foreach($recur_event as $_k => $_v) error_log($_k . ': ' . array2string($_v));
|
|||||||
$event['participants'][$uid] = $status = calendar_so::combine_status($status,$q,$r);
|
$event['participants'][$uid] = $status = calendar_so::combine_status($status,$q,$r);
|
||||||
$this->bo->set_status($event['id'],$uid,$status,0,true);
|
$this->bo->set_status($event['id'],$uid,$status,0,true);
|
||||||
}
|
}
|
||||||
$conflicts=$this->bo->update($event);
|
|
||||||
|
|
||||||
$response = egw_json_response::get();
|
|
||||||
if(!is_array($conflicts))
|
|
||||||
{
|
|
||||||
// Directly update stored data. If event is still visible, it will
|
// Directly update stored data. If event is still visible, it will
|
||||||
// be notified & update itself.
|
// be notified & update itself.
|
||||||
$this->to_client($event);
|
$this->to_client($event);
|
||||||
$response->call('egw.dataStoreUID','calendar::'.$event['id'].($date?':'.$date:''),$event);
|
egw_json_response::get()->call('egw.dataStoreUID','calendar::'.$event['id'].($date?':'.$date:''),$event);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$response->call(
|
|
||||||
'egw_openWindowCentered2',
|
|
||||||
$GLOBALS['egw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.calendar_uiforms.edit
|
|
||||||
&cal_id='.$event['id']
|
|
||||||
.'&start='.$event['start']
|
|
||||||
.'&end='.$event['end']
|
|
||||||
.'&non_interactive=true'
|
|
||||||
.'&cancel_needs_refresh=true',
|
|
||||||
'',750,410);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user