logo       

mantisbt/core filter_api.php,1.154,1.155: msg#00054

Subject: mantisbt/core filter_api.php,1.154,1.155
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18811

Modified Files:
        filter_api.php 
Log Message:
Fix 7849: filters on custom date field causes SQL error

Index: filter_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -d -r1.154 -r1.155
--- filter_api.php      21 May 2007 06:34:10 -0000      1.154
+++ filter_api.php      27 May 2007 22:31:59 -0000      1.155
@@ -1102,11 +1102,11 @@
                                                        break ;
                                                case CUSTOM_FIELD_DATE_AFTER:
                                                        array_push( 
$t_join_clauses, $t_cf_join_clause );
-                                                       $t_custom_where_clause 
= '(( ' . $t_table_name . '.value+0) > ' . 
($t_filter['custom_fields'][$t_cfid][1]+1) . ')' ;
+                                                       $t_custom_where_clause 
= '( (' . $t_table_name . '.value+0) > ' . 
($t_filter['custom_fields'][$t_cfid][1]+1) ;
                                                        break ;
                                                default:
                                                        array_push( 
$t_join_clauses, $t_cf_join_clause );
-                                                       $t_custom_where_clause 
= '(( ' . $t_table_name . '.value+0) BETWEEN ' . 
$t_filter['custom_fields'][$t_cfid][1] . ' AND ' . 
$t_filter['custom_fields'][$t_cfid][2] . ')' ;
+                                                       $t_custom_where_clause 
= '( (' . $t_table_name . '.value+0) BETWEEN ' . 
$t_filter['custom_fields'][$t_cfid][1] . ' AND ' . 
$t_filter['custom_fields'][$t_cfid][2];
                                                        break ;
                                                }
                                        } else {


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe