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/10/30 15:42:18 UTC
[airavata-php-gateway] branch staging updated: AIRAVATA-3234 Only
display URI_COLLECTION if it has a value
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 0ea794f AIRAVATA-3234 Only display URI_COLLECTION if it has a value
0ea794f is described below
commit 0ea794feba72ad8f6fc9619c6f6e5630781c5d4a
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Wed Oct 30 11:37:32 2019 -0400
AIRAVATA-3234 Only display URI_COLLECTION if it has a value
---
app/libraries/ExperimentUtilities.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 36d7259..dde5f97 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -105,7 +105,9 @@ class ExperimentUtilities
}
}else if($input->type == DataType::URI_COLLECTION) {
- $optFilesHtml = $optFilesHtml . ExperimentUtilities::get_uri_collection_value_display($input->value);
+ if ($input->value) {
+ $optFilesHtml = $optFilesHtml . ExperimentUtilities::get_uri_collection_value_display($input->value);
+ }
} elseif ($input->type == DataType::STRING || $input->type == DataType::INTEGER
|| $input->type == DataType::FLOAT) {