DataObjects/Core_person.php
authoredward <edward@roojs.com>
Wed, 20 Sep 2017 08:55:31 +0000 (16:55 +0800)
committeredward <edward@roojs.com>
Wed, 20 Sep 2017 08:55:31 +0000 (16:55 +0800)
DataObjects/Core_person.php

index c8a8863..d7b0f5f 100644 (file)
@@ -816,6 +816,15 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             
         }
         
+        if(!empty($q['in_group_name'])){
+            $this->whereAdd("
+                $tn_p.id IN (
+                    SELECT distinct(user_id) FROM $tn_gm
+                    WHERE group_id = $ing
+                )"
+            );
+        }
+        
         // #2307 Search Country!!
         if (!empty($q['query']['in_country'])) {
             // DB_DataObject::debugLevel(1);