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 cloning issue
Date Fri, 25 Mar 2016 18:06:38 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop be798e60d -> f31c17c89


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/develop
Commit: f31c17c89310bd64bd263d2188d85fac515b38e2
Parents: be798e6
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Fri Mar 25 14:06:36 2016 -0400
Committer: scnakandala <supun.nakandala@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!');


Mime
View raw message