Skip to content

Commit

Permalink
Merge pull request #271 from Sota-Miyamoto:fix_workflows_value_update
Browse files Browse the repository at this point in the history
#261 ワークフローで値を更新すると更新履歴がシステム管理者になる問題を修正
  • Loading branch information
Remicck authored Oct 18, 2021
2 parents 13834db + 4dc6960 commit 6d3e05b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/com_vtiger_workflow/VTWorkflowUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6d3e05b

Please sign in to comment.