[otrs-cvs] FAQ/Kernel/Modules AgentFAQSearch.pm,1.39,1.40
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/FAQ/Kernel/Modules
In directory lancelot:/tmp/cvs-serv18547/Kernel/Modules
Modified Files:
AgentFAQSearch.pm
Log Message:
Fixed bug# 9022 - AgentFAQSearch finds only valid FAQ articles by default.
Author: ub
Index: AgentFAQSearch.pm
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Modules/AgentFAQSearch.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -2 -u -d -r1.39 -r1.40
--- AgentFAQSearch.pm 2 Jan 2013 11:08:02 -0000 1.39
+++ AgentFAQSearch.pm 4 Jan 2013 12:26:22 -0000 1.40
@@ -219,4 +219,8 @@
}
+ # get valid list
+ my %ValidList = $Self->{ValidObject}->ValidList();
+ my @AllValidIDs = keys %ValidList;
+
# perform FAQ search
my @ViewableFAQIDs = $Self->{FAQObject}->FAQSearch(
@@ -229,4 +233,6 @@
ContentSearchPrefix => '*',
ContentSearchSuffix => '*',
+ ValidIDs => \@AllValidIDs
+ , # default search on all valid ids, this can be overwritten by %GetParam
%GetParam,
);
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log