airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [01/50] airavata-php-gateway git commit: Fix for AIRAVATA-2463
Date Wed, 09 Aug 2017 14:50:00 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/dreg-gateway e5286d2e8 -> 95decff37


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/dreg-gateway
Commit: a5cb98a20647669fbb3b5bd71f37310fff172574
Parents: c1bedd4
Author: Sneha Tilak <tilaks@Snehas-MacBook-Pro.local>
Authored: Mon Jul 3 16:53:58 2017 -0500
Committer: Sneha Tilak <tilaks@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");
         }
     }
 


Mime
View raw message