Skip to content

Task Type / Task Group Names Leak from Other Evaluation Template #493

@sauterl

Description

@sauterl

Describe the bug
As of version 2.0.4, the tasktype name / taskgourp name on a task template leak from other evaluation templates.

To Reproduce
Steps to reproduce the behavior:

  1. Create Evaluation Template (let's call it A) and create task type / task group an name them TTA / TGA
  2. Save eval template A
  3. Create Evaluation Template (let's call it B) and create task type / task group an name them TTB / TGA
  4. Create a task using TGA as group.
  5. Save eval template B
  6. When trying to re-edit the task in eval template B, a cryptic global error comes. Upon inspecting (e.g. with dev tools), on realises that in eval template B, the tasktype of the task is TTA, presumably due to the equally named TGA task group. At some point the lookup is not evaluation template specific and therefore the mix-up happens.

Expected behavior
Task type and task group being evaluation template specific.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • OS: ubuntu?
  • Browser: Chrome 128.0.6613.137
  • DRES Version: 2.0.4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions