[Bug 1562824] [NEW] Attempting to delete approval level with associated workflow gives 500 server error

Public bug reported:

When trying to delete an approval level that is associated with at least
one approval workflow results in an exception and a 500 server error
instead of a useful error message.

** Affects: dhis2
     Importance: Undecided
         Status: New

** Attachment added: "Server log including stack trace"
   https://bugs.launchpad.net/bugs/1562824/+attachment/4614718/+files/Terminal%20Saved%20Output.txt

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1562824

Title:
  Attempting to delete approval level with associated workflow gives 500
  server error

Status in DHIS:
  New

Bug description:
  When trying to delete an approval level that is associated with at
  least one approval workflow results in an exception and a 500 server
  error instead of a useful error message.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1562824/+subscriptions

** Description changed:

- When trying to delete an approval level that is associated with at least
- one approval workflow results in an exception and a 500 server error
- instead of a useful error message.
+ Trying to delete an approval level that is associated with at least one
+ approval workflow results in an exception and a 500 server error instead
+ of a useful error message.

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1562824

Title:
  Attempting to delete approval level with associated workflow gives 500
  server error

Status in DHIS:
  New

Bug description:
  Trying to delete an approval level that is associated with at least
  one approval workflow results in an exception and a 500 server error
  instead of a useful error message.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1562824/+subscriptions