mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
fix for bug [ 1023559 ] Infolog does not search all entries while linking
This commit is contained in:
parent
032bef4012
commit
7a6e1b807a
@ -457,6 +457,7 @@
|
||||
$query = array(
|
||||
'search' => $pattern,
|
||||
'start' => 0,
|
||||
'subs' => true,
|
||||
);
|
||||
$ids = $this->search($query);
|
||||
$content = array();
|
||||
|
@ -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 = '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user