Skip to content

Commit

Permalink
thinkingreed-inc#261 ワークフローで値を更新すると更新履歴がシステム管理者になる問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sota_miyamoto committed Aug 23, 2021
1 parent 78cac92 commit a8bf3aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/com_vtiger_workflow/VTWorkflowUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ function loggedInUser() {
*/
function revertUser() {
global $current_user;
if (count(self::$userStack) != 0) {
$current_user = array_pop(self::$userStack);
$userStackCounts = count(self::$userStack);
if ($userStackCounts != 0) {
for ($i=1; $i<$userStackCounts; $i++) {
array_pop(self::$userStack);
}
$current_user = self::$userStack[0];
} else {
$current_user = null;
}
Expand Down

0 comments on commit a8bf3aa

Please sign in to comment.