mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
derp, that took way too long
This commit is contained in:
parent
fe76333ec2
commit
c47e63747b
|
@ -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)]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue