Fix for bug #2006.

pull/7/head
Ludovic Marcotte 2012-11-17 17:16:00 -05:00
parent 40d6ce66d0
commit 0979bd13ae
5 changed files with 8 additions and 19 deletions

View File

@ -191,6 +191,10 @@ static NSArray *folderListingFields = nil;
qs = [NSString stringWithFormat: qs = [NSString stringWithFormat:
@"(c_categories isCaseInsensitiveLike: '%%%@%%')", @"(c_categories isCaseInsensitiveLike: '%%%@%%')",
filter]; filter];
else if ([criteria isEqualToString: @"organization"])
qs = [NSString stringWithFormat:
@"(c_o isCaseInsensitiveLike: '%%%@%%')",
filter];
else else
qs = @"(1 == 0)"; qs = @"(1 == 0)";

View File

@ -32,15 +32,6 @@
@implementation UIxContactsFilterPanel @implementation UIxContactsFilterPanel
static NSMutableArray *filters = nil;
+ (void) initialize
{
#warning how useful is this?
if (!filters)
filters = [[NSMutableArray alloc] initWithCapacity:4];
}
- (id) init - (id) init
{ {
if ((self = [super init])) if ((self = [super init]))
@ -87,13 +78,6 @@ static NSMutableArray *filters = nil;
return searchCriteria; return searchCriteria;
} }
/* filters */
- (NSArray *) filters
{
return filters;
}
/* qualifiers */ /* qualifiers */
- (NSString *) filterLabel - (NSString *) filterLabel

View File

@ -1,8 +1,8 @@
/* /*
Copyright (C) 2006-2011 Inverse inc. Copyright (C) 2006-2012 Inverse inc.
Copyright (C) 2004-2005 SKYRIX Software AG Copyright (C) 2004-2005 SKYRIX Software AG
This file is part of OpenGroupware.org. This file is part of SOGo.
SOGo is free software; you can redistribute it and/or modify it under SOGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the the terms of the GNU Lesser General Public License as published by the

View File

@ -10,6 +10,7 @@
<li id="name_or_address"><var:string <li id="name_or_address"><var:string
label:value="Name or Email"/></li> label:value="Name or Email"/></li>
<li id="category"><var:string label:value="Category"/></li> <li id="category"><var:string label:value="Category"/></li>
<li id="organization"><var:string label:value="Organization"/></li>
</ul> </ul>
</div> </div>

View File

@ -1227,7 +1227,7 @@ getMenus = function() {
"-", onMenuDeleteContact, "-", "-", onMenuDeleteContact, "-",
"moveContactMenu", "copyContactMenu", "moveContactMenu", "copyContactMenu",
onMenuExportContact, onMenuRawContact); onMenuExportContact, onMenuRawContact);
menus["searchMenu"] = new Array(setSearchCriteria, setSearchCriteria); menus["searchMenu"] = new Array(setSearchCriteria, setSearchCriteria, setSearchCriteria);
var contactFoldersMenu = $("contactFoldersMenu"); var contactFoldersMenu = $("contactFoldersMenu");
if (contactFoldersMenu) if (contactFoldersMenu)