[otrs-cvs] otrs/Kernel/System/Ticket/ArticleSearchIndex RuntimeDB.pm, 1.14, 1.14.2.1 StaticDB.pm, 1.21, 1.21.2.1
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/System/Ticket/ArticleSearchIndex
In directory lancelot:/tmp/cvs-serv3599/Kernel/System/Ticket/ArticleSearchIndex
Modified Files:
Tag: rel-3_1
RuntimeDB.pm StaticDB.pm
Log Message:
Fixed problems with empty ticket search results while Ticket::Frontend::AgentTicketSearch###ExtendedSearchCondition is inactive.
Author: marb
Index: RuntimeDB.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/ArticleSearchIndex/RuntimeDB.pm,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -2 -u -d -r1.14 -r1.14.2.1
--- RuntimeDB.pm 2 Sep 2011 15:09:49 -0000 1.14
+++ RuntimeDB.pm 16 Jan 2013 13:38:03 -0000 1.14.2.1
@@ -1,5 +1,5 @@
# --
# Kernel/System/Ticket/ArticleSearchIndex/RuntimeDB.pm - article search index backend runtime
-# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -147,4 +147,7 @@
$Param{Data}->{$Key} =~ s/%%/%/gi;
+ # replace * with % (for SQL)
+ $Value =~ s/\*/%/g;
+
# db quote
$Value = $Self->{DBObject}->Quote( $Value, 'Like' );
Author: marb
Index: StaticDB.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/ArticleSearchIndex/StaticDB.pm,v
retrieving revision 1.21
retrieving revision 1.21.2.1
diff -2 -u -d -r1.21 -r1.21.2.1
--- StaticDB.pm 8 Dec 2011 14:06:42 -0000 1.21
+++ StaticDB.pm 16 Jan 2013 13:38:04 -0000 1.21.2.1
@@ -1,5 +1,5 @@
# --
# Kernel/System/Ticket/ArticleSearchIndex/StaticDB.pm - article search index backend static
-# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -203,4 +203,7 @@
$Param{Data}->{$Key} =~ s/%%/%/gi;
+ # replace * with % (for SQL)
+ $Value =~ s/\*/%/g;
+
# db quote
$Value = lc $Self->{DBObject}->Quote( $Value, 'Like' );
---------------------------------------------------------------------
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