Requisition Template configure requires manual reload after save

Description

After saving a requisition template that has got existing requisitions, you cannot enter the configuration screen for that requisition template again, until you manually reload the screen or leave it and come back again. If you try to do so, you get Internal Application Error message.

Repro

  1. Go to configure requisition template for a template that has got at least one requisition created with it

  2. Change anything (eg. show or hide any column)

  3. Save

  4. Click "Configure" at the same template again

  5. Error

Cause
When a requisition template has any templates assigned, a save creates a new instance of the template in the database. The UI queries for the old ID though and fails.

Environment

None

Status

Assignee

Klaudia Pałkowska

Reporter

Sebastian Brudziński

Labels

Story Points

1

Time tracking

6h

Components

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure