projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96a34bc
)
DataObjects/Person.php
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Jun 2015 06:45:44 +0000
(14:45 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Jun 2015 06:45:44 +0000
(14:45 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
f826380
..
6e56756
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-852,6
+852,15
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
"$tn_p.remarks",
"join_company_id_id.name"
);
+ $tbcols = $this->table();
+ foreach(array('firstname','lastname') as $k) {
+ if (isset($tbcols[$k])) {
+ $props[] = "{$tn_p}.{$k}";
+ }
+ }
+
+
+
$str = $x->toSQL(array(
'default' => $props,