pdestefanis/NTD-ORBIS — Issue #24: Prevent deleting facilities with active children facilities
Author: pdestefanis
Created: 2012-02-03 21:10:27+00:00
State: open

The children facilities of a facility need to be deleted (locations.deleted = 1) or non-existing to allow the deletion of the parent facility.
If the user attempts to delete a facility with active (locations.deleted = 0) facilities, a message appears indicating the children facilities to be deleted or reallocated to another parent facility.

"The facility you are trying to delete has dependent facilities. Please delete those facilities or assign them to another facility and retry this operation. The children facilities are: ...."