mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Added withInput to carry over older fields
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
14ec96cf45
commit
04f83d34ff
|
@ -30,6 +30,7 @@ class Handler extends ExceptionHandler
|
|||
\League\OAuth2\Server\Exception\OAuthServerException::class,
|
||||
JsonException::class,
|
||||
SCIMException::class, //these generally don't need to be reported
|
||||
InvalidFormatException::class,
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +80,7 @@ class Handler extends ExceptionHandler
|
|||
|
||||
// Handle standard requests that fail because Carbon cannot parse the date on validation (when a submitted date value is definitely not a date)
|
||||
if ($e instanceof InvalidFormatException) {
|
||||
return redirect()->back()->with('error', trans('validation.date', ['attribute' => 'date']));
|
||||
return redirect()->back()->withInput()->with('error', trans('validation.date', ['attribute' => 'date']));
|
||||
}
|
||||
|
||||
// Handle API requests that fail
|
||||
|
|
Loading…
Reference in a new issue