Resolving exception - 2481

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/14ee6e5d
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/14ee6e5d
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/14ee6e5d

Branch: refs/heads/dreg-gateway
Commit: 14ee6e5d31c495d50d5d48b9688cd2f7f24b9de1
Parents: b2d5a2c
Author: Sneha Tilak <til...@snehas-mbp.local.tld>
Authored: Wed Jul 5 10:31:59 2017 -0500
Committer: Sneha Tilak <til...@snehas-mbp.local.tld>
Committed: Wed Jul 5 10:31:59 2017 -0500

----------------------------------------------------------------------
 app/controllers/GatewayRequestUpdateController.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/14ee6e5d/app/controllers/GatewayRequestUpdateController.php
----------------------------------------------------------------------
diff --git a/app/controllers/GatewayRequestUpdateController.php 
b/app/controllers/GatewayRequestUpdateController.php
index 2165191..2ff33a5 100644
--- a/app/controllers/GatewayRequestUpdateController.php
+++ b/app/controllers/GatewayRequestUpdateController.php
@@ -52,11 +52,9 @@ class GatewayRequestUpdateController extends BaseController
             $returnVal = 
AdminUtilities::user_update_gateway(Input::get("internal-gateway-id"), 
Input::all());
 
             if ($returnVal == 1) {
-                $username = Session::get("username");
                 $email = Config::get('pga_config.portal')['admin-emails'];
-                $user_profile = Keycloak::getUserProfile($username);
-                EmailUtilities::mailToUser($user_profile["firstname"], 
$user_profile["lastname"], $email, Input::get("gateway-id"));
-                EmailUtilities::mailToAdmin($email, Input::get("gateway-id"));
+                
EmailUtilities::gatewayUpdateMailToProvider(Input::get("email-address"), 
Input::get("gateway-id"));
+                EmailUtilities::gatewayUpdateMailToAdmin($email, 
Input::get("gateway-id"));
                 Session::put("message", "Your Gateway has been updated");
             } else
                 Session::put("errorMessages", "Error: Please try again or 
contact admin to report the issue.");

Reply via email to