Skip to content
Snippets Groups Projects
Commit fa7806a7 authored by gmantele's avatar gmantele
Browse files

[TAP] Fix bug with the UPLOAD parameter: on any job parameter modification...

[TAP] Fix bug with the UPLOAD parameter: on any job parameter modification (with a 2nd http request), the UPLOAD parameter was deleted
parent bb84e64b
No related branches found
No related tags found
No related merge requests found
......@@ -323,9 +323,9 @@ public class DALIUpload {
uploads.add(upl);
if (!upl.isByReference())
usedFiles.add(upl.file.paramName);
// CASE String: it must be parsed and transformed into a DALIUpload item which will be then added inside the list:
}else if (value instanceof String)
}
// CASE String: it must be parsed and transformed into a DALIUpload item which will be then added inside the list:
else if (value instanceof String)
fetchDALIUploads(uploads, usedFiles, (String)value, requestParams, allowTAPSyntax, fileManager);
// CASE Array:
......@@ -382,7 +382,8 @@ public class DALIUpload {
}
// 3. Re-add a new "UPLOAD" parameter gathering all extracted DALI Uploads:
requestParams.put("UPLOAD", uploads.toArray(new DALIUpload[uploads.size()]));
if (uploads.size() > 0)
requestParams.put("UPLOAD", uploads.toArray(new DALIUpload[uploads.size()]));
return uploads;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment