better fix
This commit is contained in:
commit
b482a78d31
@ -1131,7 +1131,7 @@ class ActionComm extends CommonObject
|
||||
if (empty($this->type_code)) {
|
||||
$cactioncomm = new CActionComm($this->db);
|
||||
$result = $cactioncomm->fetch($this->type_id);
|
||||
if ($result>=0) {
|
||||
if ($result >= 0 && !empty($cactioncomm->code)) {
|
||||
$this->type_code = $cactioncomm->code;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user