[otrs-cvs] otrs/Kernel/System/Ticket/ArticleSearchIndex RuntimeDB.pm, 1.17, 1.18 StaticDB.pm, 1.24, 1.25

"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-serv8083/Kernel/System/Ticket/ArticleSearchIndex

Modified Files:
	RuntimeDB.pm StaticDB.pm 
Log Message:
Fix 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.17
retrieving revision 1.18
diff -2 -u -d -r1.17 -r1.18
--- RuntimeDB.pm	20 Nov 2012 15:59:43 -0000	1.17
+++ RuntimeDB.pm	17 Jan 2013 00:09:30 -0000	1.18
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/Ticket/ArticleSearchIndex/RuntimeDB.pm - article search index backend runtime
-# Copyright (C) 2001-2012 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.24
retrieving revision 1.25
diff -2 -u -d -r1.24 -r1.25
--- StaticDB.pm	20 Nov 2012 15:59:51 -0000	1.24
+++ StaticDB.pm	17 Jan 2013 00:09:30 -0000	1.25
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/Ticket/ArticleSearchIndex/StaticDB.pm - article search index backend static
-# Copyright (C) 2001-2012 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.