Fixed not being able to unset Baufreigabe in Pipe- and Linework
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user