diff --git a/module/action/model.php b/module/action/model.php index 9b70d5a4b9..456ab331d9 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -480,6 +480,7 @@ class actionModel extends model foreach($typeTrashes as $objectType => $objectIdList) { if(!isset($this->config->objectTables[$objectType])) continue; + if($objectType == 'auditplan') continue; if(!isset($this->config->action->objectNameFields[$objectType])) continue; $table = $this->config->objectTables[$objectType]; @@ -1412,6 +1413,7 @@ class actionModel extends model if(isset($this->config->objectTables[$objectType])) $table = $this->config->objectTables[$objectType]; if($objectType == 'makeup') $table = TABLE_OVERTIME; if($objectType == 'pivot') $table = TABLE_PIVOTSPEC; + if($objectType == 'auditplan') continue; $field = zget($this->config->action->objectNameFields, $objectType, ''); if(empty($field)) continue;