mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Updated request methods
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
abe79df6dc
commit
bae9982833
|
@ -13,7 +13,7 @@ class CheckoutRequest extends Model
|
|||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
return $this->belongsTo(User::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
public function requestingUser()
|
||||
|
|
|
@ -102,7 +102,13 @@
|
|||
<td>
|
||||
{{ Form::open([
|
||||
'method' => 'POST',
|
||||
'route' => ['account/request-item', $request->itemType(), $request->requestable->id, true, $request->requestingUser()->id],
|
||||
'route' => [
|
||||
'account/request-item',
|
||||
$request->itemType(),
|
||||
$request->requestable->id,
|
||||
true,
|
||||
$request->requestingUser()->id
|
||||
],
|
||||
]) }}
|
||||
<button class="btn btn-warning btn-sm" data-tooltip="true" title="{{ trans('general.cancel_request') }}">{{ trans('button.cancel') }}</button>
|
||||
{{ Form::close() }}
|
||||
|
|
Loading…
Reference in a new issue