[Issue-18924] - Changed parameter name to preUploadedPresentation

This commit is contained in:
GuiLeme 2023-10-17 10:38:44 -03:00
parent d7d228d047
commit a22068be18

View File

@ -1382,18 +1382,18 @@ class ApiController {
Boolean hasPresentationUrlInParameter = false
String[] pu = request.getParameterMap().get("presentationURL")
String[] pu = request.getParameterMap().get("preUploadedPresentation")
if (pu != null) {
String presentationURL = pu[0]
String preUploadedPresentation = pu[0]
hasPresentationUrlInParameter = true
def xmlString = new StringWriter()
def xml = new MarkupBuilder(xmlString)
xml.document (
removable: "true",
downloadable: "false",
url: presentationURL,
filename: extractFilenameFromUrl(presentationURL),
name: extractFilenameFromUrl(presentationURL)
url: preUploadedPresentation,
filename: extractFilenameFromUrl(preUploadedPresentation),
name: extractFilenameFromUrl(preUploadedPresentation)
)
def parsedXml = new XmlSlurper().parseText(xmlString.toString())