mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Fixed YABs insert error displaying
Fixed YABs insert error displaying
This commit is contained in:
parent
464b2096c4
commit
f6cf9c7a65
@ -37,8 +37,8 @@ class YabsController extends Controller
|
||||
$yabs = $process->yabsOutputAsJson($request->server_id, $request->yabs);
|
||||
|
||||
if (isset($yabs['error_id'])) {
|
||||
return redirect()->route('yabs.index')
|
||||
->with('error', 'Problem inserting YABs. Error id ' . $yabs['error_id']);
|
||||
return back()->withErrors(["yabs" => 'Problem inserting YABs. Error id ' . $yabs['error_id']])->withInput();
|
||||
//return redirect()->route('yabs.index')->with('error', 'Problem inserting YABs. Error id ' . $yabs['error_id']);
|
||||
}
|
||||
//No errors, do insert
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user