From 201cab7d0b8c3047ab48c48a1b1c450fb7074112 Mon Sep 17 00:00:00 2001 From: Arved Solth Date: Fri, 14 Jul 2023 11:37:54 +0200 Subject: [PATCH] Fix order after upload in process with unstructured media files --- .../kitodo/production/forms/dataeditor/UploadFileDialog.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/UploadFileDialog.java b/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/UploadFileDialog.java index 5ecf1b19453..47a409d223a 100644 --- a/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/UploadFileDialog.java +++ b/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/UploadFileDialog.java @@ -15,9 +15,6 @@ import java.io.IOException; import java.io.OutputStream; import java.net.URI; -import java.net.URLDecoder; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; @@ -361,6 +358,7 @@ public void uploadMedia(FileUploadEvent event) { PrimeFaces.current().executeScript("PF('notifications').renderMessage({'summary':'" + Helper.getTranslation("mediaUploaded", event.getFile().getFileName()) + "','severity':'info'});"); + dataEditor.getStructurePanel().changePhysicalOrderFields(); } }