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:
Ralf Becker 2011-09-29 06:17:42 +00:00
parent 1284adbccf
commit 4889fd91b8
3 changed files with 8 additions and 7 deletions

View File

@ -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;

View File

@ -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',

View File

@ -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'];
}