If an application branch contains a project branch and the project is deleted, it's no longer possible to edit the application branch.
Steps to reproduce:
- Create project p1 and p2
- Create long lived branch b1 in p1
- Create an application A with project P1 and P2
- Create a branch in application A, containing b1
- Delete project P
- Try to edit the branches of application A -> it should fail.
The call to /api/applications/show returns HTTP code 500.
The bug was unintentionally fixed in 8.2 during a code refactoring.