fix for bug [ 1023559 ] Infolog does not search all entries while linking

This commit is contained in:
Ralf Becker 2004-09-08 16:01:16 +00:00
parent 032bef4012
commit 7a6e1b807a
2 changed files with 3 additions and 1 deletions

View File

@ -457,6 +457,7 @@
$query = array(
'search' => $pattern,
'start' => 0,
'subs' => true,
);
$ids = $this->search($query);
$content = array();

View File

@ -467,6 +467,7 @@
@param $query[action] / $query[action_id] if only entries linked to a specified app/entry show be used
@param &$query[start], &$query[total] nextmatch-parameters will be used and set if query returns less entries
@param $query[col_filter] array with column-name - data pairs, data == '' means no filter (!)
@param $query[subs] boolean return subs or not, if unset the user preference is used
@returns array with id's as key of the matching log-entries
*/
function search(&$query)
@ -546,7 +547,7 @@
$pid = 'AND info_id_parent='.($action == 'sp' ? $query['action_id'] : 0);
if (!$GLOBALS['phpgw_info']['user']['preferences']['infolog']['listNoSubs'] &&
$action != 'sp')
$action != 'sp' || isset($query['subs']) && $query['subs'])
{
$pid = '';
}