derp, that took way too long

This commit is contained in:
spencerrlongg 2025-03-04 21:03:12 -06:00
parent fe76333ec2
commit c47e63747b
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ class AssetsController extends Controller
}
// this shouldn't happen, but php complains if there's no final return
return redirect()->to(Helper::getRedirectOption($request, $asset->id, 'Assets'))
->with('success-unescaped', trans('admin/hardware/message.create.success_linked', ['link' => route('hardware.show', ['hardware' => $asset->id]), 'id', 'tag' => e($asset->asset_tag)]));
->with('success-unescaped', trans('admin/hardware/message.create.success_linked', ['link' => route('hardware.show', $asset->id), 'id', 'tag' => e($asset->asset_tag)]));
}
/**

View file

@ -52,7 +52,7 @@ class StoreAssetTest extends TestCase
$storedAsset = Asset::where('asset_tag', 'TEST-ASSET')->sole();
$response->assertRedirect(route('hardware.show', ['hardware' => $storedAsset->id]));
$response->assertRedirect(route('hardware.show', $storedAsset));
$this->assertDatabaseHas('assets', [
'id' => $storedAsset->id,