From 69ba02856872ec2453a355e9378102973075f0f6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Sep 2004 16:04:37 +0000 Subject: [PATCH] fix for bug [ 1023559 ] Infolog does not search all entries while linking --- infolog/inc/class.boinfolog.inc.php | 1 + infolog/inc/class.soinfolog.inc.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index 5b97c7bed8..4ffb2263a1 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -457,6 +457,7 @@ $query = array( 'search' => $pattern, 'start' => 0, + 'subs' => true, ); $ids = $this->search($query); $content = array(); diff --git a/infolog/inc/class.soinfolog.inc.php b/infolog/inc/class.soinfolog.inc.php index 92e1fe7849..11e5603d98 100644 --- a/infolog/inc/class.soinfolog.inc.php +++ b/infolog/inc/class.soinfolog.inc.php @@ -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 = ''; }