Merge pull request #2146 from dmeltzer/Fix-Asset-Creation-with-old-data

Fix hardware creation error making old input disappear.
This commit is contained in:
snipe 2016-06-10 00:47:30 -07:00 committed by GitHub
commit c6ca1748cb
2 changed files with 2 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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);
}
});