generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent infinite loop for ineligible application
This prevents an infinite loop when building the task list for an application that has the ESAP AP type selected but no agreement with CHPP. The loop was the result of the inegibility page returning the user to the AP type selection page on submission. This works if the user then saves a different AP type straight away; however, should the user then exit the application, any further attempt to load the application would result in the loop. To prevent this, the ESAP inegibility page no longer posts, but simply offers a link to the AP Type selection. In addition, to ensure the AP Type task is shown as 'In progress' in the above scenario, the ESAP ineligibility page always returns an error. This error is never shown, but prevents the loop from continuing with processing any further task.
- Loading branch information
Showing
3 changed files
with
37 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters