Finished Building -> termination
This commit is contained in:
@@ -188,11 +188,11 @@ class BuildingController extends mfBaseController {
|
||||
$this->layout()->setFlash("Objekt nicht gefunden", "error");
|
||||
$this->redirect("Building");
|
||||
}
|
||||
/*
|
||||
|
||||
if(TerminationModel::search(["building_id" => $id])) {
|
||||
$this->layout()->setFlash("Das Objekt kann nicht gelöscht werden, da noch Anschlüsse zugeordnet sind.", "error");
|
||||
$this->redirect("Building");
|
||||
}*/
|
||||
}
|
||||
|
||||
$building->delete();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user