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
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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)
					else if (value instanceof String)
						fetchDALIUploads(uploads, usedFiles, (String)value, requestParams, allowTAPSyntax, fileManager);

					// CASE Array: 
@@ -382,6 +382,7 @@ public class DALIUpload {
		}

		// 3. Re-add a new "UPLOAD" parameter gathering all extracted DALI Uploads:
		if (uploads.size() > 0)
			requestParams.put("UPLOAD", uploads.toArray(new DALIUpload[uploads.size()]));

		return uploads;