Skip to content

A free open source IT asset/license management system

Properly handle route model bound LicenseSeat not being found

Marcus Moorefd854072b069
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index 6e35f8217a..e340d70b09 100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -141,6 +141,8 @@ class Handler extends ExceptionHandler
$route = 'kits.index';
} elseif ($route == 'assetmaintenances.index') {
$route = 'maintenances.index';
+ } elseif ($route === 'licenseseats.index') {
+ $route = 'licenses.index';
}
return redirect()
@@ -203,4 +205,4 @@ class Handler extends ExceptionHandler
//
});
}
-}
\ No newline at end of file
+}