* Can not use vision field of zt_action table when upgrade.

This commit is contained in:
hufangzhou
2022-02-25 15:28:15 +08:00
parent 3627387370
commit 9640120b43
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class actionModel extends model
$action->action = $actionType;
$action->date = helper::now();
$action->extra = $extra;
$action->vision = $this->config->vision;
if(!defined('IN_UPGRADE')) $action->vision = $this->config->vision;
if($objectType == 'story' and strpos(',reviewpassed,reviewrejected,reviewclarified,', ",$actionType,") !== false) $action->actor = $this->lang->action->system;