projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a3632
)
DataObjects/Events.php
author
Edward
<edward@roojs.com>
Fri, 28 Feb 2014 04:30:00 +0000
(12:30 +0800)
committer
Edward
<edward@roojs.com>
Fri, 28 Feb 2014 04:30:00 +0000
(12:30 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
975877b
..
f8bf392
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-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');
}