DataObjects/Person.php
authorEdward <edward@roojs.com>
Wed, 8 Jan 2014 03:23:02 +0000 (11:23 +0800)
committerEdward <edward@roojs.com>
Wed, 8 Jan 2014 03:23:02 +0000 (11:23 +0800)
DataObjects/Person.php

index 465687f..2df628a 100644 (file)
@@ -792,6 +792,12 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             
         }
         
+        if(!empty($q['query']['name'])){
+            $this->whereAdd("
+                $tn.name LIKE '%{$this->escape($q['query']['name'])}%'
+            ");
+        }
+        
         if (!empty($q['query']['search'])) {
             
             // use our magic search builder...