mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
"small fix of last commit for new (not already saved) events"
This commit is contained in:
parent
0439b8de35
commit
0275b183dd
@ -1121,12 +1121,8 @@ class calendar_uiforms extends calendar_ui
|
|||||||
function ajax_freetimesearch(array $edit_content)
|
function ajax_freetimesearch(array $edit_content)
|
||||||
{
|
{
|
||||||
$response = new xajaxResponse();
|
$response = new xajaxResponse();
|
||||||
//$response->addAlert(__METHOD__.'('.array2string($content).')');
|
//$response->addAlert(__METHOD__.'('.array2string($edit_content).')');
|
||||||
|
|
||||||
if (!(int)$edit_content['id'])
|
|
||||||
{
|
|
||||||
throw new egw_exception_wrong_parameter(__METHOD__.'() missing id in request!');
|
|
||||||
}
|
|
||||||
if ($edit_content['duration'])
|
if ($edit_content['duration'])
|
||||||
{
|
{
|
||||||
$edit_content['end'] = $edit_content['start'] + $edit_content['duration'];
|
$edit_content['end'] = $edit_content['start'] + $edit_content['duration'];
|
||||||
@ -1171,7 +1167,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
$content['search_window'] = 7 * DAY_s;
|
$content['search_window'] = 7 * DAY_s;
|
||||||
|
|
||||||
// store content in session
|
// store content in session
|
||||||
egw_cache::setSession('calendar','freetimesearch_args_'.$edit_content['id'],$content);
|
egw_cache::setSession('calendar','freetimesearch_args_'.(int)$edit_content['id'],$content);
|
||||||
|
|
||||||
//menuaction=calendar.calendar_uiforms.freetimesearch&values2url('start,end,duration,participants,recur_type,whole_day'),ft_search,700,500
|
//menuaction=calendar.calendar_uiforms.freetimesearch&values2url('start,end,duration,participants,recur_type,whole_day'),ft_search,700,500
|
||||||
$link = egw::link('/index.php',array(
|
$link = egw::link('/index.php',array(
|
||||||
|
Loading…
Reference in New Issue
Block a user