kitodo / kitodo-production

Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite.
http://www.kitodo.org/software/kitodoproduction/
GNU General Public License v3.0
64 stars 63 forks source link

List of addable templates not updated when adding template to project #6280

Open solth opened 1 month ago

solth commented 1 month ago

Describe the bug When adding templates to a project using "+" buttons on the "Add template" dialog of the "Edit project" page, the list of templates is not updated, meaning the template just added to the project remains in the list of templates that can be added:

https://github.com/user-attachments/assets/0abe7ef2-1d06-492f-8e79-498788a2b1c6

To Reproduce Steps to reproduce the behavior:

  1. Go to "Projects" list
  2. Edit a project
  3. Change to tab "Templates"
  4. Add a template
  5. Observe error

Expected behavior Templates added to the project should disappear from the list of remaining templates that can be added to the project. This functionality already works correctly on the "User edit" page, where clients added to the the user in the same way templates are added to a project disappear from the list of available clients:

https://github.com/user-attachments/assets/2338a73a-8810-4f28-b068-e6ae9e141651

Release all 3.x versions