mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 16:38:39 +01:00
* support multiget report on url with uid, as lightning uses multiget after a PUT on the PUT url, which is the uid
This commit is contained in:
parent
8cbce65eb3
commit
24f964abf8
@ -354,7 +354,16 @@ error_log(__METHOD__."($path,,".array2string($start).") filter=".array2string($f
|
||||
if ($option['name'] == 'href')
|
||||
{
|
||||
$parts = explode('/',$option['data']);
|
||||
if (is_numeric($id = basename(array_pop($parts),'.ics'))) $ids[] = $id;
|
||||
if (!($id = basename(array_pop($parts),'.ics'))) continue;
|
||||
|
||||
if (is_numeric($id))
|
||||
{
|
||||
$ids[] = $id;
|
||||
}
|
||||
else // eg. lightning uses multiget after a PUT on the PUT url, which is the uid
|
||||
{
|
||||
$cal_filters['query']['cal_uid'][] = $id;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -363,7 +372,7 @@ error_log(__METHOD__."($path,,".array2string($start).") filter=".array2string($f
|
||||
$cal_filters['query'][] = 'egw_cal.cal_id IN ('.implode(',',array_map(create_function('$n','return (int)$n;'),$ids)).')';
|
||||
}
|
||||
|
||||
if ($this->debug > 1) error_log(__FILE__ . __METHOD__ ."($options[path],...,$id) calendar-multiget: ids=".implode(',',$ids));
|
||||
if ($this->debug > 1) error_log(__FILE__ . __METHOD__ ."($options[path],...,$id) calendar-multiget: ids=".implode(',',$ids).', cal_filters='.array2string($cal_filters));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user