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 2019/08/07 19:02:42 UTC
[airavata-php-gateway] branch staging updated: AIRAVATA-3093 Fix
setting group-res-profile when cloning exp
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata-php-gateway.git
The following commit(s) were added to refs/heads/staging by this push:
new bc6131f AIRAVATA-3093 Fix setting group-res-profile when cloning exp
bc6131f is described below
commit bc6131fbc5c0bb143d568f674feadbddb36bae35
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Wed Aug 7 15:02:13 2019 -0400
AIRAVATA-3093 Fix setting group-res-profile when cloning exp
---
app/controllers/ExperimentController.php | 1 +
app/libraries/ExperimentUtilities.php | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/controllers/ExperimentController.php b/app/controllers/ExperimentController.php
index c44aef6..811c864 100755
--- a/app/controllers/ExperimentController.php
+++ b/app/controllers/ExperimentController.php
@@ -397,6 +397,7 @@ class ExperimentController extends BaseController
$cloneId = ExperimentUtilities::clone_experiment(Input::get('expId'), Input::get('projectId'));
return Redirect::to('experiment/edit?expId=' . urlencode($cloneId));
}catch (Exception $ex){
+ Log::error($ex);
return Redirect::to("experiment/summary?expId=" . urlencode(Input::get('expId')))
->with("cloning-error", "Failed to clone experiment: " . $ex->getMessage());
}
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index b150de4..8296db4 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -717,7 +717,7 @@ class ExperimentUtilities
// original experiment was created, update in this experiment
$experiment->userConfigurationData->storageId = Config::get('pga_config.airavata')['gateway-data-store-resource-id'];
if (isset(Config::get('pga_config.airavata')['group-resource-profile-id'])) {
- $userConfigData->groupResourceProfileId = Config::get('pga_config.airavata')['group-resource-profile-id'];
+ $experiment->userConfigurationData->groupResourceProfileId = Config::get('pga_config.airavata')['group-resource-profile-id'];
}
Airavata::updateExperiment(Session::get('authz-token'), $cloneId, $experiment);