set building status assigned when Baufreigabe is set

This commit is contained in:
Frank Schubert
2021-08-30 22:51:08 +02:00
parent 609dac71ab
commit 7127593041
3 changed files with 9 additions and 6 deletions

View File

@@ -138,6 +138,9 @@ class PipeworkController extends mfBaseController {
if($this->me->is(["Admin", "netowner", "pipeplanner"])) {
if($r->pipework_enabled == 1) {
$building->pipework_enabled = 1;
if($building->status_id < 3) {
$building->status_id = 3;
}
} else {
$building->pipework_enabled = 0;
}