Fixed R code add

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@160605 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-12-15 19:22:18 +00:00
parent f4226664bc
commit 3b6ade4f1c
1 changed files with 4 additions and 1 deletions

View File

@ -609,7 +609,10 @@ public class StatAlgoImporterServiceImpl extends RemoteServiceServlet implements
code, project.getProjectFolder().getFolder().getId());
MainCode mainCode = new MainCode(mainCodeItemDescription);
project.setMainCode(mainCode);
project.setInputData(null);
InputData inputData=project.getInputData();
if(inputData!=null){
inputData.setListInputOutputVariables(null);
}
project.setProjectTarget(null);
WPS4RParser wps4Parser = new WPS4RParser(project, serviceCredentials);
project = wps4Parser.parse();