* adjust for save action to pms.

This commit is contained in:
wangyidong
2020-03-11 08:58:27 +08:00
parent 89ea58a4da
commit beaa6ff0b2
2 changed files with 22 additions and 3 deletions
+8 -1
View File
@@ -503,7 +503,14 @@ class actionModel extends model
if(empty($actionID)) return false;
foreach($changes as $change)
{
$change['action'] = $actionID;
if(is_object($change))
{
$change->action = $actionID;
}
else
{
$change['action'] = $actionID;
}
$this->dao->insert(TABLE_HISTORY)->data($change)->exec();
}
}