mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fix hardware creation error making old input disappear. This should be redone to dynamically update on the client side based on a JSON response instead of flashing and reloading, but that's a lot of change for v3 at this point.
This commit is contained in:
parent
c91c1f92cd
commit
044695cb02
|
@ -55,8 +55,7 @@ class AssetRequest extends Request
|
|||
{
|
||||
$this->session()->flash('errors', Session::get('errors', new \Illuminate\Support\ViewErrorBag)
|
||||
->put('default', new \Illuminate\Support\MessageBag($errors)));
|
||||
|
||||
\Input::flash();
|
||||
return parent::response($errors);
|
||||
// return $this->redirector->back()->withInput()->withErrors($errors, $this->errorBag);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -515,7 +515,7 @@ $(function () {
|
|||
},
|
||||
error: function(data) {
|
||||
// AssetRequest Validator will flash all errors to session, this just refreshes to see them.
|
||||
window.location.reload();
|
||||
window.location.reload(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue