From c5b72d3a0a7a3fd3dc16697ed0b103b2044f2b74 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Mon, 30 Jul 2018 13:29:32 +0000 Subject: [PATCH] [Bug #12269] Fixing key parameter for type FILE< git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/ws-task-executor-widget@169987 82a268e6-3cf1-43bd-a215-b396298e98cf --- distro/changelog.xml | 3 ++- .../client/view/binder/CreateTaskConfigurationView.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/distro/changelog.xml b/distro/changelog.xml index e75e839..ba265a7 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,6 +1,7 @@ + date="2018-07-30"> + [Bug #12269] Fixing key parameter for type FILE first release diff --git a/src/main/java/org/gcube/portlets/widgets/wstaskexecutor/client/view/binder/CreateTaskConfigurationView.java b/src/main/java/org/gcube/portlets/widgets/wstaskexecutor/client/view/binder/CreateTaskConfigurationView.java index e098ae9..607a09f 100644 --- a/src/main/java/org/gcube/portlets/widgets/wstaskexecutor/client/view/binder/CreateTaskConfigurationView.java +++ b/src/main/java/org/gcube/portlets/widgets/wstaskexecutor/client/view/binder/CreateTaskConfigurationView.java @@ -281,13 +281,14 @@ public abstract class CreateTaskConfigurationView extends Composite { for (TaskParameter operator : taskOperator.getInputOperators()) { addedPublicLink = false; if(!wsItem.isFolder()){ - //IF ITEM IS A FILE ISTANCING ITS FIRST FILE PARAMETER OCCURED (IF IT EXISTS) WIHT THE PUBLIC LINK OF THE ITEM + //IF ITEM IS A FILE THEN I'M ISTANCING ITS FIRST FILE PARAMETER OCCURED (IF IT EXISTS) WITH THE PUBLIC LINK OF THE ITEM if(operator.getType().getType().equals("FILE")){ countFileParameter++; if(countFileParameter==1){ List pLink = new ArrayList(1); pLink.add(wsItem.getPublicLink()); - appendCustomField("publicLink", pLink, operator.getType().getType(), false); + String publicLinkParamName = operator.getKey()!=null? operator.getKey():"publicLink"; + appendCustomField(publicLinkParamName, pLink, operator.getType().getType(), false); addedPublicLink = true; } }