DataObjects/Events.php
authorEdward <edward@roojs.com>
Fri, 28 Feb 2014 04:30:00 +0000 (12:30 +0800)
committerEdward <edward@roojs.com>
Fri, 28 Feb 2014 04:30:00 +0000 (12:30 +0800)
DataObjects/Events.php

index 975877b..f8bf392 100644 (file)
@@ -114,8 +114,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
             //DB_DataObject::debugLevel(1);
             $this->_extra_cols = array('qty' , 'uqty');
             $this->selectAdd("count($tn.id) as qty");
-//            $this->selectAdd("count( distinct $tn.on_table, $tn.on_id) as uqty");
-            $this->selectAdd("count($tn.on_id) as uqty");
+            $this->selectAdd("count( distinct $tn.on_table, $tn.on_id) as uqty");
             
             $this->groupBy('on_table');
         }