projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2441d6d
)
DataObjects/Core_enum.php
author
Micheal
<micheal@roojs.com>
Mon, 26 Jan 2015 09:04:09 +0000
(17:04 +0800)
committer
Micheal
<micheal@roojs.com>
Mon, 26 Jan 2015 09:04:09 +0000
(17:04 +0800)
DataObjects/Core_enum.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_enum.php
b/DataObjects/Core_enum.php
index
311bea4
..
e577014
100644
(file)
--- a/
DataObjects/Core_enum.php
+++ b/
DataObjects/Core_enum.php
@@
-161,6
+161,10
@@
class Pman_Core_DataObjects_Core_enum extends DB_DataObject
if ($old->etype != $this->etype) {
$x->query("SELECT core_enum_seqmax_update('". $this->escape($old->etype) ."')");
}
+ if(empty($old->etype) && empty($this->etype)){
+ $x->query("UPDATE core_enum SET etype = '". $this->escape($this->name)
+ ."' WHERE etype = '". $this->escape($old->name)."'");
+ }
}
/**