From aa89c7b3b9477306e2f72ad3f91a71137f0cd2c6 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 6 Aug 2023 15:02:39 -0700 Subject: [PATCH] Fix transfers for join / rejoin division. --- app/Classes/TransferHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Classes/TransferHelper.php b/app/Classes/TransferHelper.php index c28e830a..7ab8e2a0 100644 --- a/app/Classes/TransferHelper.php +++ b/app/Classes/TransferHelper.php @@ -18,7 +18,7 @@ public static function requestTransfer(User $user, string $facility, string $rea $log = new Actions; $log->from = 0; - $log->to = Auth::user()->cid; + $log->to = $user->cid; $log->log = "Requested transfer from " . $tr->from . " to " . $tr->to . ": " . $tr->reason; $log->save(); @@ -51,7 +51,7 @@ public static function forceTransfer(User $user, string $facility, string $reaso $log = new Actions; $log->from = 0; - $log->to = Auth::user()->cid; + $log->to = $user->cid; $log->log = "Forced transfer from " . $tr->from . " to " . $tr->to . ": " . $tr->reason; $log->save();