From 7dc574f2a695fa08a586d0c06b36becc673d74cc Mon Sep 17 00:00:00 2001 From: Riki Kawai Date: Mon, 18 Oct 2021 17:40:37 +0900 Subject: [PATCH] Merge pull request #271 from Sota-Miyamoto:fix_workflows_value_update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #261 ワークフローで値を更新すると更新履歴がシステム管理者になる問題を修正 --- modules/com_vtiger_workflow/VTWorkflowUtils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/com_vtiger_workflow/VTWorkflowUtils.php b/modules/com_vtiger_workflow/VTWorkflowUtils.php index f671da0e2..2057543d4 100644 --- a/modules/com_vtiger_workflow/VTWorkflowUtils.php +++ b/modules/com_vtiger_workflow/VTWorkflowUtils.php @@ -66,7 +66,8 @@ function loggedInUser() { function revertUser() { global $current_user; if (count(self::$userStack) != 0) { - $current_user = array_pop(self::$userStack); + array_splice(self::$userStack, 1); + $current_user = self::$userStack[0]; } else { $current_user = null; }