Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid DocType cannot be corrected #5905

Open
matthias-ronge opened this issue Jan 29, 2024 · 1 comment
Open

Invalid DocType cannot be corrected #5905

matthias-ronge opened this issue Jan 29, 2024 · 1 comment

Comments

@matthias-ronge
Copy link
Collaborator

Describe the bug
If the DocType (the top division) contains a type that is unknown in the ruleset, this cannot be corrected using the "Change type of structure element" dialog. Nothing is displayed in the dialog and the list cannot be expanded.

To Reproduce
Steps to reproduce the behavior:

  1. Change the DocType in a meta.xml file to something that does not exist in the ruleset (here: MultiVolumeWork, but the ruleset only knows MultivolumeWork).
  2. Open the process in the Metadata Editor
  3. Right-click on the incorrect structure in Structure Tree and select "Change type of structure element"
  4. See: everything is empty and nothing can be chosen

Expected behavior
All divisions permitted at this point should be listed, here—in the case of the topmost division—all permitted doc types.

Screenshots
Screenshot

Release
3.6.0

Desktop (please complete the following information):

  • OS: Windows 10
  • Firefox 122.0

Additional context
In the case found, the process is a hierarchical superordination, which also already has a linked subordination process. Maybe that plays a role.

@solth
Copy link
Member

solth commented Apr 5, 2024

I just tested this in the current version 3.6.2 - the error only seems to affect parent processes. I couldn't reproduce the issue for processes without children and standalone processes, e.g. those processes had an unknown or undefined document type the list in the "Change doc type" popup wasn't empty and I was able to change the doc type to a valid value. So I guess it has something to do with process hierarchies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants