Fixed YABs insert error displaying

Fixed YABs insert error displaying
This commit is contained in:
cp6 2022-05-16 21:30:52 +10:00
parent 464b2096c4
commit f6cf9c7a65

View File

@ -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