fix admin param in user accepted notification
This commit is contained in:
@@ -115,7 +115,8 @@ class AcceptanceController extends Controller
|
||||
}
|
||||
|
||||
$item = $acceptance->checkoutable_type::find($acceptance->checkoutable_id);
|
||||
|
||||
$lastCheckout = $item->checkouts()->latest()->first();
|
||||
$admin = $lastCheckout?->adminuser;
|
||||
|
||||
|
||||
// If signatures are required, make sure we have one
|
||||
@@ -164,11 +165,10 @@ class AcceptanceController extends Controller
|
||||
'signature' => (($sig_filename && array_key_exists('1', $encoded_image))) ? $encoded_image[1] : null,
|
||||
'logo' => ($encoded_logo) ?? null,
|
||||
'date_settings' => $settings->date_display_format,
|
||||
'admin' => auth()->user()->present()?->fullName,
|
||||
'admin' => $admin->present()?->fullName,
|
||||
'qty' => $acceptance->qty ?? 1,
|
||||
];
|
||||
|
||||
|
||||
if ($request->input('asset_acceptance') == 'accepted') {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user