You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you use the project widget on the desktop page to create a new process then a wrong project is used which results that the created project in inside the wrong project and may have a wrong workflow assigned.
For example I used the "TG_16/17" project to create a new process inside this project which is using our default process template "PV-SLUB-Standard" from the desktop project widget:
But in the following dialog this was visibile (I skipped the process search dialog as this dialog is not relevant):
It is mentioned the process template "PV-SLUB-Dingler" which is from an other project which has different settings and even more a different workflow. Even the used templateId with value 3 and the projectId with value 13 in the URI pointing to the wrong process template "PV-SLUB-Dingler" (template id 3) and project "Dingler" (project Id 13) instead of the correct process template "PV-SLUB-Standard" (template id 1) and project "TG_16/17" (project id 2) which is working if I try to create a new process from the project list overview page:
To Reproduce
Steps to reproduce the behavior:
Click on the "+" sign of the desktop project widget to create a new process from the selected project
See in the creating dialog a wrong content for the used process template and if you save the new process the process is assigned to an other project.
Expected behavior
Creating a new process from the desktop project widget should use the right project and process template on creating the process. Release
3.6.0-SNAPSHOT, 3.7.1, 3.8.0-RC1, master branch
henning-gerhardt
changed the title
Desktop project widget use wrong proejct on process creation
Desktop project widget use wrong project on process creation
Dec 10, 2024
Yes, this is somehow related but the issue is only for creating new processes and not for the other usages there. The call to create new processes is total different to the other calls in this file.
Maybe the sorting introduced by PR 5802 is not needed if the list of projects is already correct sorted by the search engine so an additional sorting is not needed. The similar solution of the project list in the project view did not work as there are different data objects in both places.
Describe the bug
If you use the project widget on the desktop page to create a new process then a wrong project is used which results that the created project in inside the wrong project and may have a wrong workflow assigned.
For example I used the "TG_16/17" project to create a new process inside this project which is using our default process template "PV-SLUB-Standard" from the desktop project widget:
But in the following dialog this was visibile (I skipped the process search dialog as this dialog is not relevant):
It is mentioned the process template "PV-SLUB-Dingler" which is from an other project which has different settings and even more a different workflow. Even the used
templateId
with value3
and theprojectId
with value13
in the URI pointing to the wrong process template "PV-SLUB-Dingler" (template id 3) and project "Dingler" (project Id 13) instead of the correct process template "PV-SLUB-Standard" (template id 1) and project "TG_16/17" (project id 2) which is working if I try to create a new process from the project list overview page:To Reproduce
Steps to reproduce the behavior:
Expected behavior
Creating a new process from the desktop project widget should use the right project and process template on creating the process.
Release
3.6.0-SNAPSHOT, 3.7.1, 3.8.0-RC1, master branch
Additional context
This has something to do with the sorting of the projects inside the desktop project widget. If the sorting in https://github.com/kitodo/kitodo-production/blob/master/Kitodo/src/main/webapp/WEB-INF/templates/includes/desktop/projectsWidget.xhtml#L22 is removed than the process creating is working as expected but than the list of projects inside the project widget is not sorted anymore.
The text was updated successfully, but these errors were encountered: