Fixed not being able to unset Baufreigabe in Pipe- and Linework

This commit is contained in:
Frank Schubert
2025-04-10 13:36:17 +02:00
parent 507f1a4c00
commit 0dfc66e119
2 changed files with 19 additions and 1 deletions

View File

@@ -317,7 +317,15 @@ class PipeworkController extends mfBaseController {
$building->pipework_enabled_by = $this->me->id;
$building->save();
}
}
if(!$r->isset("pipework_enabled") && $this->me->is(["Admin", "pipeplanner"])) {
if($building->pipework_enabled == 1) {
$building->pipework_enabled = 0;
$building->pipework_enabled_date = date('U');
$building->pipework_enabled_by = $this->me->id;
$building->save();
}
}
if($building->workflow_comment != $r->workflow_comment) {