diff --git a/application/Api/v1/PreorderApicontroller.php b/application/Api/v1/PreorderApicontroller.php index 54f415f63..fc3b0f0d2 100644 --- a/application/Api/v1/PreorderApicontroller.php +++ b/application/Api/v1/PreorderApicontroller.php @@ -195,7 +195,7 @@ class PreorderApicontroller extends mfBaseApicontroller { } } - $address_info = $this->db()->escape(trim($post['address_info'])); + $address_info = $this->db()->escape(trim($this->post['address_info'])); // get correct campaign by salescluster if(!array_key_exists($address->netzgebiet_id, $this->campaigns_by_scluster)) { diff --git a/public/docs/preorder-api.yaml b/public/docs/preorder-api.yaml index 70e428740..657b2608f 100644 --- a/public/docs/preorder-api.yaml +++ b/public/docs/preorder-api.yaml @@ -213,6 +213,8 @@ paths: --- Parameter `address`: Anschlussadresse + Parameter `address_info`: Zusätzliche Informationen zur Adresse + Parameter `customer`: Vertragsinhaber --- @@ -533,6 +535,10 @@ components: - housenumber - zip - city + address_info: + type: string + description: Zusätzliche Info zur Adresse + example: im Carport customer: type: object properties: