Added edit indication to workflow

This commit is contained in:
Frank Schubert
2021-08-30 20:55:21 +02:00
parent fc9e943466
commit aa05334ce2
8 changed files with 185 additions and 97 deletions

View File

@@ -27,10 +27,15 @@ class BuildingFileController extends mfBaseController {
$this->redirect("Building");
}
$building_id = $buildingfile->order_id;
$building_id = $buildingfile->building_id;
$buildingfile->file->delete();
$buildingfile->delete();
if($this->request->from == "pipework") {
$this->redirect("Pipework", "Index", false, "object=".$building_id);
}
$this->redirect("Building", "edit", ["id" => $building_id]);
}
}