fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10380] property: requirement: hit on id on search


From: Sigurd Nes
Subject: [Fmsystem-commits] [10380] property: requirement: hit on id on search
Date: Tue, 30 Oct 2012 09:47:51 +0000

Revision: 10380
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10380
Author:   sigurdne
Date:     2012-10-30 09:47:51 +0000 (Tue, 30 Oct 2012)
Log Message:
-----------
property: requirement: hit on id on search

Modified Paths:
--------------
    trunk/property/inc/class.sorequest.inc.php

Modified: trunk/property/inc/class.sorequest.inc.php
===================================================================
--- trunk/property/inc/class.sorequest.inc.php  2012-10-30 08:14:38 UTC (rev 
10379)
+++ trunk/property/inc/class.sorequest.inc.php  2012-10-30 09:47:51 UTC (rev 
10380)
@@ -538,7 +538,7 @@
                                else
                                {
                                        $query = 
$this->db->db_addslashes($query);
-                                       $querymethod = " $where 
(fm_request.title {$this->like} '%$query%' OR fm_request.address {$this->like} 
'%$query%' OR fm_request.location_code {$this->like} '%$query%'";
+                                       $querymethod = " $where 
(fm_request.title {$this->like} '%$query%' OR fm_request.address {$this->like} 
'%$query%' OR fm_request.location_code {$this->like} '%$query%' OR 
fm_request.id =" . (int)$query;
                                        for ($i=1;$i<=($_location_level);$i++)
                                        {
                                                $querymethod .= " OR 
fm_location{$i}.loc{$i}_name {$this->like} '%$query%'";




reply via email to

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