phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc/class.soinvoice.inc.php, 1.4.2.6


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.soinvoice.inc.php, 1.4.2.6
Date: Tue, 7 Dec 2004 10:04:28 +0100

Update of /property/inc
Modified Files:
        Branch: proposed-0_9_18-branch
          class.soinvoice.inc.php

date: 2004/12/07 09:04:28;  author: sigurdne;  state: Exp;  lines: +4 -4

Log Message:
Using ilike if pgsql
=====================================================================
Index: property/inc/class.soinvoice.inc.php
diff -u property/inc/class.soinvoice.inc.php:1.4.2.5 
property/inc/class.soinvoice.inc.php:1.4.2.6
--- property/inc/class.soinvoice.inc.php:1.4.2.5        Mon Dec  6 15:01:22 2004
+++ property/inc/class.soinvoice.inc.php        Tue Dec  7 09:04:28 2004
@@ -40,7 +40,7 @@
 
                        $this->join                     = $this->bocommon->join;
                        $this->left_join        = $this->bocommon->left_join;
-
+                       $this->like                     = $this->bocommon->like;
                }
 
 
@@ -163,7 +163,7 @@
                                $query = ereg_replace("'",'',$query);
                                $query = ereg_replace('"','',$query);
 
-                               $querymethod = " $where ( spvend_code LIKE 
'%$query%' OR bilagsnr LIKE '%$query%' )";
+                               $querymethod = " $where ( spvend_code 
$this->like '%$query%' OR bilagsnr $this->like '%$query%' )";
                        }
 
 
@@ -468,7 +468,7 @@
 
                        if($loc1)
                        {
-                               $filtermethod .=" $where (dima like '%$loc1%')";
+                               $filtermethod .=" $where (dima $this->like 
'%$loc1%')";
                                $where= 'AND';
                        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]