projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249d17c
)
DataObjects/Events.php
author
Alan Knowles
<alan@roojs.com>
Wed, 8 Feb 2012 04:07:40 +0000
(12:07 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 8 Feb 2012 04:07:40 +0000
(12:07 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
6e0ad5a
..
ec20f8c
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-69,6
+69,12
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
// &_columns=on_id_cohead_number,event_when << this is ignored at present.
// max(event_when) is not supported... by any query yet..
+ if (isset($q['on_table']) && !strlen($q['on_table'])) {
+ // empty ontable queries.. these are valid..
+ $this->whereAdd("$tn.on_table = ''");
+ }
+
+
if (isset($q['query']['person_sum'])) {
//DB_DataObject::debugLevel(1);
$this->_extra_cols = array('qty' );