From b338cf4cf4f48534d7c8363bf63543bff78c9a39 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 27 Mar 2001 12:53:31 +0000 Subject: [PATCH] Change filtering --- addressbook/index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/addressbook/index.php b/addressbook/index.php index 950577e3d7..b0107efb6a 100755 --- a/addressbook/index.php +++ b/addressbook/index.php @@ -105,27 +105,27 @@ $offset = 30; } - // Set qfilter to display entries where tid is blank, + // Set qfilter to display entries where tid=n (normal contact entry), // else they may be accounts, etc. if (!$filter) { $filter = "none"; } if ($filter == "none") { if ($cat_id == "all") { - $qfilter = 'tid='; + $qfilter = 'tid=n'; } else { - $qfilter = 'tid=,cat_id='.$cat_id; + $qfilter = 'tid=n,cat_id='.$cat_id; } } elseif($filter == "private") { if ($cat_id == "all") { - $qfilter = 'owner='.$phpgw_info["user"]["account_id"].',tid='; + $qfilter = 'tid=n,owner='.$phpgw_info["user"]["account_id"]; } else { - $qfilter = 'owner='.$phpgw_info["user"]["account_id"].',tid=,cat_id='.$cat_id; + $qfilter = 'tid=n,owner='.$phpgw_info["user"]["account_id"].',cat_id='.$cat_id; } } else { if ($cat_id == "all") { - $qfilter = 'tid=,owner='.$filter; + $qfilter = 'tid=n,owner='.$filter; } else { - $qfilter = 'tid=,owner='.$filter.'cat_id='.$cat_id; + $qfilter = 'tid=n,owner='.$filter.'cat_id='.$cat_id; } }