fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6788] property: fix search


From: Sigurd Nes
Subject: [Fmsystem-commits] [6788] property: fix search
Date: Mon, 17 Jan 2011 14:38:46 +0000

Revision: 6788
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6788
Author:   sigurdne
Date:     2011-01-17 14:38:45 +0000 (Mon, 17 Jan 2011)
Log Message:
-----------
property: fix search

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

Modified: trunk/property/inc/class.soentity.inc.php
===================================================================
--- trunk/property/inc/class.soentity.inc.php   2011-01-17 14:28:25 UTC (rev 
6787)
+++ trunk/property/inc/class.soentity.inc.php   2011-01-17 14:38:45 UTC (rev 
6788)
@@ -409,6 +409,13 @@
                                                {
                                                        case 'V':
                                                        case 'email':
+                                                       case 'T':
+                                                               
if(!$criteria_id)
+                                                               {
+                                                                       
$_querymethod[]= "$entity_table." . $this->db->f('column_name') . " 
{$this->like} '%{$query}%'";
+                                                                       
$__querymethod = array(); // remove block
+                                                               }
+                                                               break;
                                                        case 'CH':
                                                                
if(!$criteria_id)
                                                                {
@@ -486,7 +493,7 @@
 
                        $sql .= " $filtermethod $querymethod";
 
-                       //_debug_array($sql);
+_debug_array($sql);
                        $this->db->query('SELECT count(*) as cnt ' . 
substr($sql,strripos($sql,'from')),__LINE__,__FILE__);
                        $this->db->next_record();
                        $this->total_records = $this->db->f('cnt');




reply via email to

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