projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a354117
)
DataObjects/Core_templatestr.php
author
leon
<leon@roojs.com>
Thu, 3 Aug 2023 03:47:16 +0000
(11:47 +0800)
committer
leon
<leon@roojs.com>
Thu, 3 Aug 2023 03:47:16 +0000
(11:47 +0800)
DataObjects/Core_templatestr.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_templatestr.php
b/DataObjects/Core_templatestr.php
index
c6c52ac
..
ef28160
100644
(file)
--- a/
DataObjects/Core_templatestr.php
+++ b/
DataObjects/Core_templatestr.php
@@
-99,6
+99,12
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
foreach($cols as $c) {
$x = $this->factory($this->tableName());
+ if(strpos($c, ',') !== false) {
+ $arr = explode(',', $c);
+ $c = $arr[0];
+ $cond = $arr[1];
+ }
+ $x->whereAdd($cond);
$x->on_id = $obj->pid();
$x->on_table = $tn;
$x->on_col = $c;