mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
documented infolog_bo::getctag() signature and fixed call in infolog_activesync (disabled call to not used and currently broken egw_index)
This commit is contained in:
parent
1284adbccf
commit
4889fd91b8
@ -517,8 +517,10 @@ class infolog_activesync implements activesync_plugin_write
|
||||
$infolog_types = 'task';
|
||||
}
|
||||
|
||||
$ctag = $this->infolog->getctag(array($owner == $GLOBALS['egw_info']['user']['account_id'] ? 'own' : 'user'.$owner,
|
||||
explode(',', $infolog_types)));
|
||||
$ctag = $this->infolog->getctag(array(
|
||||
'filter' => $owner == $GLOBALS['egw_info']['user']['account_id'] ? 'own' : 'user'.$owner,
|
||||
'info_type' => explode(',', $infolog_types),
|
||||
));
|
||||
|
||||
$changes = array(); // no change
|
||||
$syncstate_was = $syncstate;
|
||||
|
@ -1055,11 +1055,10 @@ class infolog_bo
|
||||
/**
|
||||
* Query ctag for infolog
|
||||
*
|
||||
* @param string $filter='own'
|
||||
* @param string|array $types='task'
|
||||
* @param array $filter=array('filter'=>'own','info_type'=>'task')
|
||||
* @return string
|
||||
*/
|
||||
public function getctag(array $filter)
|
||||
public function getctag(array $filter=array('filter'=>'own','info_type'=>'task'))
|
||||
{
|
||||
$filter += array(
|
||||
'order' => 'info_datemodified',
|
||||
|
@ -639,8 +639,8 @@ class infolog_so
|
||||
//error_log("### soinfolog::write(".print_r($to_write,true).") where=".print_r($where,true)." returning id=".$this->data['info_id']);
|
||||
|
||||
// update the index
|
||||
egw_index::save('infolog',$this->data['info_id'],$this->data['info_owner'],$this->data,$this->data['info_cat'],
|
||||
array('info_uid','info_type','info_status','info_confirm','info_access'));
|
||||
//egw_index::save('infolog',$this->data['info_id'],$this->data['info_owner'],$this->data,$this->data['info_cat'],
|
||||
// array('info_uid','info_type','info_status','info_confirm','info_access'));
|
||||
|
||||
return $this->data['info_id'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user