Skip to content

A free open source IT asset/license management system

Fix route to checkout components from the details page

Ivan Nieto Vivanco2402f00a2e8c
diff --git a/resources/views/components/view.blade.php b/resources/views/components/view.blade.php
index 5c4b05eaa5..322b27a791 100644
--- a/resources/views/components/view.blade.php
+++ b/resources/views/components/view.blade.php
@@ -16,8 +16,9 @@
{{ trans('button.actions') }}
<span class="caret"></span>
</button>
+
<ul class="dropdown-menu pull-right" role="menu22">
- @if ($component->assigned_to != '')
+ @if ($component->assigned_to != ''))
@can('checkin', $component)
<li role="menuitem">
<a href="{{ route('checkin/component', $component->id) }}">
diff --git a/routes/web/components.php b/routes/web/components.php
index e0cb04d054..aec4cb91b1 100644
--- a/routes/web/components.php
+++ b/routes/web/components.php
@@ -18,7 +18,7 @@ Route::group(['prefix' => 'components', 'middleware' => ['auth']], function () {
Route::get(
'{componentID}/checkin/{backto?}',
[Components\ComponentCheckinController::class, 'create']
- )->name('checkout/component');
+ )->name('checkin/component');
Route::post(
'{componentID}/checkin/{backto?}',