projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
031371e
)
Changed DataObjects/Core_templatestr.php
author
leon
<leon@roojs.com>
Thu, 3 Aug 2023 05:00:49 +0000
(13:00 +0800)
committer
leon
<leon@roojs.com>
Thu, 3 Aug 2023 05:00:49 +0000
(13:00 +0800)
DataObjects/Core_templatestr.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_templatestr.php
b/DataObjects/Core_templatestr.php
index
9d2e4ca
..
a34ced2
100644
(file)
--- a/
DataObjects/Core_templatestr.php
+++ b/
DataObjects/Core_templatestr.php
@@
-100,7
+100,7
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
$active = array();
foreach($cols as $c) {
- $x = $this->factory($this->tableName());
+
if(strpos($c, ',') !== false) {
$arr = explode(',', $c);
$c = $arr[0];
@@
-114,6
+114,9
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
continue;
}
}
+
+
+ $x = $this->factory($this->tableName());
$x->on_id = $obj->pid();
$x->on_table = $tn;
$x->on_col = $c;