Data corrupted
message when moving a page to an unsaved structure element in gallery
#6041
Labels
Data corrupted
message when moving a page to an unsaved structure element in gallery
#6041
Describe the bug
When moving a page via drag'n'drop in the gallery from "unstructured media" to a new structure element which has not been saved, yet, a popup dialog about corrupted data appears (see screenshot below). The same does not happen when moving a page to an unsaved structure element in the structure tree, however. Saving the structure before the drag'n'drop action prevents the error.
Additionally, the popup dialog cannot be closed by clicking on the "Ok" button. The metadata editor page needs to be reloaded to remove the dialog.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should be possible to move pages to an unsaved structure element in the gallery without an error. In situations where it is warranted that the dialog appears, it should be possible to close it with the "Ok" button.
Screenshots
![Bildschirmfoto 2024-04-19 um 08 30 07](https://private-user-images.githubusercontent.com/19183925/323853894-cc369889-a69b-4b64-a80e-5cec11816eee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0Nzk1MjUsIm5iZiI6MTcyMjQ3OTIyNSwicGF0aCI6Ii8xOTE4MzkyNS8zMjM4NTM4OTQtY2MzNjk4ODktYTY5Yi00YjY0LWE4MGUtNWNlYzExODE2ZWVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDAyMjcwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJkZGJlZjRhZjE5MGNjZjkwOGYyYWU2Y2QyNDg3Yzg1NGJiMGU3MjVkNTI1NGQ5MjMwYmQ4MWNmZDBlOTg1M2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6cDC5iFBwBc0E6EdvCVN5wcmcrrazDuAgXSnHCaE12c)
Release
current master, 3.7.0-SNAPSHOT
The text was updated successfully, but these errors were encountered: