[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/class.soproject.inc.php, 1.7.2.4
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/inc/class.soproject.inc.php, 1.7.2.4 |
Date: |
Tue, 7 Dec 2004 10:04:28 +0100 |
Update of /property/inc
Modified Files:
Branch: proposed-0_9_18-branch
class.soproject.inc.php
date: 2004/12/07 09:04:28; author: sigurdne; state: Exp; lines: +4 -3
Log Message:
Using ilike if pgsql
=====================================================================
Index: property/inc/class.soproject.inc.php
diff -u property/inc/class.soproject.inc.php:1.7.2.3
property/inc/class.soproject.inc.php:1.7.2.4
--- property/inc/class.soproject.inc.php:1.7.2.3 Thu Nov 18 22:12:08 2004
+++ property/inc/class.soproject.inc.php Tue Dec 7 09:04:28 2004
@@ -37,6 +37,7 @@
$this->bocommon =
CreateObject($this->currentapp.'.bocommon');
$this->join = $this->bocommon->join;
+ $this->like = $this->bocommon->like;
$this->grants =
$GLOBALS['phpgw']->session->appsession('grants_project',$this->currentapp);
@@ -265,7 +266,7 @@
{
$query = ereg_replace("'",'',$query);
$query = ereg_replace('"','',$query);
- $querymethod = " $where
(fm_project.name LIKE '%$query%' or fm_project.address LIKE '%$query%' or
fm_project.location_code LIKE '%$query%' or fm_project.id LIKE '%$query%')";
+ $querymethod = " $where
(fm_project.name $this->like '%$query%' or fm_project.address $this->like
'%$query%' or fm_project.location_code $this->like '%$query%' or fm_project.id
$this->like '%$query%')";
}
}
@@ -604,7 +605,7 @@
{
$prefix = 'meter';
$pos = strlen($prefix);
- $this->db->query("select max(num) from fm_meter where
num like ('$prefix%')");
+ $this->db->query("select max(num) from fm_meter where
num $this->like ('$prefix%')");
$this->db->next_record();
$max =
$this->bocommon->add_leading_zero(substr($this->db->f(0),$pos));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc/class.soproject.inc.php, 1.7.2.4,
nomail <=