4teamwork / opengever.core

OneGov GEVER core package
11 stars 5 forks source link

Fixes nested tasktemplates on the first level #8054

Closed elioschmutz closed 3 days ago

elioschmutz commented 1 week ago

This PR fixes the initial state of tasks created from a task template.

To make it clear what really changes through this PR, the first commit provides a bunch of missing tests of the current implementation which will then be updated with the bugfix.

Here is an example of what changes through this PR: If I start a process with the following structure:

The tasks where started in the following states:

With the fix, it would create tasks in the following states:

Before

Bildschirmfoto 2024-10-02 um 08 43 38

After

Bildschirmfoto 2024-10-02 um 08 37 39

For TI-1300

Checklist

Everything has to be done/checked. Checked but not present means the author deemed it unnecessary.