mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge remote-tracking branch 'origin/v3' into v3-master
This commit is contained in:
commit
4e1472f66d
|
@ -55,8 +55,7 @@ class AssetRequest extends Request
|
||||||
{
|
{
|
||||||
$this->session()->flash('errors', Session::get('errors', new \Illuminate\Support\ViewErrorBag)
|
$this->session()->flash('errors', Session::get('errors', new \Illuminate\Support\ViewErrorBag)
|
||||||
->put('default', new \Illuminate\Support\MessageBag($errors)));
|
->put('default', new \Illuminate\Support\MessageBag($errors)));
|
||||||
|
\Input::flash();
|
||||||
return parent::response($errors);
|
return parent::response($errors);
|
||||||
// return $this->redirector->back()->withInput()->withErrors($errors, $this->errorBag);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -516,7 +516,7 @@ $(function () {
|
||||||
},
|
},
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
// AssetRequest Validator will flash all errors to session, this just refreshes to see them.
|
// 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