You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/03/25 21:49:21 UTC

[36/40] airavata-php-gateway git commit: fixing cloning issue

fixing cloning issue


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

Branch: refs/heads/master
Commit: f31c17c89310bd64bd263d2188d85fac515b38e2
Parents: be798e6
Author: scnakandala <su...@gmail.com>
Authored: Fri Mar 25 14:06:36 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Fri Mar 25 14:06:36 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f31c17c8/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 9ba0028..44b4d6e 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -328,6 +328,18 @@ class ExperimentUtilities
                     $dataProductModel->replicaLocations[] = $dataReplicationModel;
                     $uri = Airavata::registerDataProduct(Session::get('authz-token'), $dataProductModel);
                     $experimentInput->value = $uri;
+                } else {
+                    $index = -1;
+                    for ($i = 0; $i < sizeof($experimentInputs); $i++) {
+                        if ($experimentInputs[$i]->name == $applicationInput->name) {
+                            $index = $i;
+                        }
+                    }
+
+                    if ($index >= 0) {
+                        $experimentInput->value = $experimentInputs[$index]->value;
+                        $experimentInput->type = $applicationInput->type;
+                    }
                 }
             } else {
                 CommonUtilities::print_error_message('I cannot accept this input type yet!');