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);
|
$yabs = $process->yabsOutputAsJson($request->server_id, $request->yabs);
|
||||||
|
|
||||||
if (isset($yabs['error_id'])) {
|
if (isset($yabs['error_id'])) {
|
||||||
return redirect()->route('yabs.index')
|
return back()->withErrors(["yabs" => 'Problem inserting YABs. Error id ' . $yabs['error_id']])->withInput();
|
||||||
->with('error', 'Problem inserting YABs. Error id ' . $yabs['error_id']);
|
//return redirect()->route('yabs.index')->with('error', 'Problem inserting YABs. Error id ' . $yabs['error_id']);
|
||||||
}
|
}
|
||||||
//No errors, do insert
|
//No errors, do insert
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user