Merge branch 'fronkdev' into 'master'

ConstructionConsent Changes

See merge request fronk/thetool!1022
This commit is contained in:
Frank Schubert
2025-02-13 13:36:53 +00:00
9 changed files with 313 additions and 159 deletions

View File

@@ -217,6 +217,14 @@ class ConstructionConsentController extends mfBaseController {
$data["usage_manhole"] = $r->usage_manhole ? 1 : 0;
$data["usage_owner"] = $r->usage_owner ? 1 : 0;
if($r->object_type == "street") {
$data["usage_length"] = 1;
$data["usage_pipe_on_plot"] = 1;
$data["usage_pipe_in_building"] = 1;
$data["usage_manhole"] = 1;
$data["usage_owner"] = 1;
}
if($mode == "add") {
$item = ConstructionConsent::create($data);
} else {