From 9640120b43ad2e49f00b537e9d3aa5d1ca710c09 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Fri, 25 Feb 2022 15:28:15 +0800 Subject: [PATCH] * Can not use vision field of zt_action table when upgrade. --- Makefile | 1 + module/action/model.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f0ecb33a77..aee5879e4b 100644 --- a/Makefile +++ b/Makefile @@ -161,6 +161,7 @@ pms: zip -rq -9 ZenTaoPMS.$(VERSION).zip zentaopms rm -fr zentaopms zentaoxx zentaoxx.*.zip ci: + git pull make common make zentaoxx unzip zentaoxx.*.zip diff --git a/module/action/model.php b/module/action/model.php index cdb1cd99d6..6dbe4341c5 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -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;