From 9a935a79bc0c29a35a3d2d3cf0347ecb6f543975 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Wed, 29 Jan 2025 13:41:14 +0100 Subject: [PATCH] ConstructionConsent added result type "moved" --- Layout/default/ConstructionConsent/View.php | 1 + .../ConstructionConsentOwnerController.php | 2 +- ..._construction_consent_add_result_moved.php | 37 +++++++++++++++++++ lang/de.php | 1 + 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 db/migrations/20250129123434_construction_consent_add_result_moved.php diff --git a/Layout/default/ConstructionConsent/View.php b/Layout/default/ConstructionConsent/View.php index a03b9979c..4987ee55a 100644 --- a/Layout/default/ConstructionConsent/View.php +++ b/Layout/default/ConstructionConsent/View.php @@ -325,6 +325,7 @@ $pagination_entity_name = "Adressen"; +
diff --git a/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php b/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php index 2cf6a53ac..08c08f7fb 100644 --- a/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php +++ b/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php @@ -187,7 +187,7 @@ class ConstructionConsentOwnerController extends mfBaseController return false; } - if(!in_array($new_result, ['open', 'accepted', 'denied', 'unresolvable'])) { + if(!in_array($new_result, ['open', 'accepted', 'denied', 'unresolvable', 'moved'])) { return false; } diff --git a/db/migrations/20250129123434_construction_consent_add_result_moved.php b/db/migrations/20250129123434_construction_consent_add_result_moved.php new file mode 100644 index 000000000..58d3ecc61 --- /dev/null +++ b/db/migrations/20250129123434_construction_consent_add_result_moved.php @@ -0,0 +1,37 @@ +getEnvironment() == "thetool") { + $table = $this->table("ConstructionConsent"); + $table->changeColumn("result", "enum", ["null" => true, "default" => null, "values" => "open,accepted,denied,unresolvable,moved"]); + $table->save(); + + $table = $this->table("ConstructionConsentOwner"); + $table->changeColumn("result", "enum", ["null" => true, "default" => null, "values" => "open,accepted,denied,unresolvable,moved"]); + $table->save(); + + + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + + } + } +} diff --git a/lang/de.php b/lang/de.php index b2f73d703..c2ffc8c2b 100644 --- a/lang/de.php +++ b/lang/de.php @@ -79,6 +79,7 @@ $l["consent.open"] = "Offen"; $l["consent.accepted"] = "Zugestimmt"; $l["consent.denied"] = "Abgelehnt"; $l["consent.unresolvable"] = "Uneinbringlich"; +$l["consent.moved"] = "Verzogen"; $l["consent.requested"] = "Angefragt"; $l["consent.answered"] = "Antwort erhalten";