airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: fixing AIRAVATA-2253 : Modifications or new email added for notification are not saved in Experiment
Date Wed, 07 Dec 2016 18:43:40 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 85223818a -> 0db607e82


fixing AIRAVATA-2253 : Modifications or new email added for notification are not saved in
Experiment


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

Branch: refs/heads/develop
Commit: 0db607e823a179e8b80aeda862290fb41c4f5391
Parents: 8522381
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Dec 7 13:43:35 2016 -0500
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Dec 7 13:43:35 2016 -0500

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0db607e8/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 7604624..0db86f1 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -1279,6 +1279,11 @@ class ExperimentUtilities
         $experimentInputs = $experiment->experimentInputs; // get current inputs
         $experimentInputs = ExperimentUtilities::process_inputs( $experiment->userConfigurationData->experimentDataDir,
$applicationInputs, $experimentInputs); // get new inputs
 
+        if (isset($_POST["enableEmailNotification"])) {
+            $experiment->enableEmailNotification = intval($_POST["enableEmailNotification"]);
+            $experiment->emailAddresses = array_unique(array_filter($_POST["emailAddresses"],
"trim"));
+        }
+
         if ($experimentInputs) {
             $experiment->experimentInputs = $experimentInputs;
             //var_dump($experiment);


Mime
View raw message