You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/08/03 17:02:53 UTC

[02/50] airavata-php-gateway git commit: Fix for AIRAVATA-2463

Fix for AIRAVATA-2463


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/a5cb98a2
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/a5cb98a2
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/a5cb98a2

Branch: refs/heads/master
Commit: a5cb98a20647669fbb3b5bd71f37310fff172574
Parents: c1bedd4
Author: Sneha Tilak <ti...@Snehas-MacBook-Pro.local>
Authored: Mon Jul 3 16:53:58 2017 -0500
Committer: Sneha Tilak <ti...@Snehas-MacBook-Pro.local>
Committed: Mon Jul 3 16:53:58 2017 -0500

----------------------------------------------------------------------
 app/controllers/AdminController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/a5cb98a2/app/controllers/AdminController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AdminController.php b/app/controllers/AdminController.php
index b9adfed..07e0dd2 100644
--- a/app/controllers/AdminController.php
+++ b/app/controllers/AdminController.php
@@ -506,7 +506,6 @@ class AdminController extends BaseController {
                 $user_profile = Keycloak::getUserProfile($username);
                 EmailUtilities::gatewayRequestMail($user_profile["firstname"], $user_profile["lastname"], $email, $inputs["gateway-name"]);
                 Session::put("message", "Your request for Gateway " . $inputs["gateway-name"] . " has been created.");
-                return Redirect::to("admin/dashboard");
             }
             else{
                 $error = "A Gateway already exists with the same GatewayId, Name or URL! Please make a new request.";
@@ -514,6 +513,7 @@ class AdminController extends BaseController {
                     ->withInput()
                     ->withErrors($error);
             }
+            return Redirect::to("admin/dashboard");
         }
     }