Skip to content
Permalink
Browse files
AIRAVATA-3093 Fix setting group-res-profile when cloning exp
  • Loading branch information
machristie committed Aug 7, 2019
1 parent e103b63 commit bc6131fbc5c0bb143d568f674feadbddb36bae35
Showing 2 changed files with 2 additions and 1 deletion.
@@ -397,6 +397,7 @@ public function cloneExperiment()
$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());
}
@@ -717,7 +717,7 @@ public static function clone_experiment($expId, $projectId)
// 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);

0 comments on commit bc6131f

Please sign in to comment.