Skip to content
Permalink
Browse files
Merge remote-tracking branch 'sneha/2463' into develop
This closes #62
  • Loading branch information
machristie committed Jul 4, 2017
2 parents b6c715d + a5cb98a commit 06544a1535b994e3a7d602fd66b230a846649fe0
Showing 1 changed file with 5 additions and 1 deletion.
@@ -494,6 +494,7 @@ public function checkRequest(){
if ($validator->fails()) {
Session::put("validationMessages", [$validator->messages()] );
return Redirect::to("admin/dashboard")
->withInput()
->withErrors($validator);
}
else{
@@ -507,7 +508,10 @@ public function checkRequest(){
Session::put("message", "Your request for Gateway " . $inputs["gateway-name"] . " has been created.");
}
else{
Session::put("errorMessages", "Error: A Gateway already exists with the same GatewayId, Name or URL! Please make a new request.");
$error = "A Gateway already exists with the same GatewayId, Name or URL! Please make a new request.";
return Redirect::to("admin/dashboard")
->withInput()
->withErrors($error);
}
return Redirect::to("admin/dashboard");
}

0 comments on commit 06544a1

Please sign in to comment.