Skip to content

Commit

Permalink
Prevent 'data corrupted' error when moving media to unsaved structure…
Browse files Browse the repository at this point in the history
…s in gallery
  • Loading branch information
solth committed Feb 10, 2025
1 parent 596e602 commit 93a87d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public void addDocStruc(boolean preview) {
} else {
this.addSingleDocStruc(preview);
}
dataEditor.getStructurePanel().preserve();
if (preview && (!(StringUtils.isEmpty(selectFirstPageOnAddNode)
|| StringUtils.isEmpty(this.selectLastPageOnAddNode))
|| Objects.nonNull(this.preselectedViews) && !this.preselectedViews.isEmpty())) {
Expand Down
2 changes: 1 addition & 1 deletion Kitodo/src/main/resources/messages/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ correctionSolveProblem=Solution of correction could not be reported!
correctionTasks=Correction tasks
correctionWorkflow=Correction workflow
corruptData=Data corrupted
corruptDataDescription=The action could not be executed because an error occured. The editor will be reloaded and the last save will be restored. Changed made since then are discarded. If this problem occurs repeatedly when trying to execute this action please try to execute this action in the structure tree and inform your administrator.
corruptDataDescription=The action could not be executed because an error occurred. The editor will be reloaded and the last save will be restored. Changes made since then are discarded. If this problem occurs repeatedly when trying to execute this action please try to execute this action in the structure tree and inform your administrator.
couldNotCreateImageFolder=Image folder could not be created
count=Count
counting=Counting
Expand Down

0 comments on commit 93a87d1

Please sign in to comment.