projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce3fe23
)
DataObjects/Events.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 14 May 2012 04:17:01 +0000
(12:17 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 14 May 2012 04:17:01 +0000
(12:17 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
dfc9e65
..
6c11041
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-211,8
+211,10
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
$pt->whereAdd('person_table IS NOT NULL AND LENGTH(person_table) > 0');
$tbls = $pt->fetchAll('person_table');
$pers = DB_DataObject::Factory('Person');
+ $ptbl = $pers->tableName();
if (!in_array($pers->tableName(),$tbls)) {
- $tbls[] = $pers->tableName();
+ $tbls[] = $ptbl;
+
}
foreach($tbls as $tbl) {
@@
-239,7
+241,7
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
$this->selectAdd("
CASE
". implode("\n", $whens) ."
- ELSE
''
+ ELSE
join_person_table_{}
END
as person_table_{$col}"
);