Commit 9c599fce authored by jaapjansma's avatar jaapjansma

Added street_name, street_number, street_number_suffix to create address actions

parent 8f20c99f
......@@ -8,6 +8,7 @@ Version 1.2
** Other Major changes **
* Refactor of the action provider, so that list of available actions only contains the title, name and not the instaciated class (with all the loaded configuration, such as groups, option values etc..)
* Create Address actions now also contains parameters for street name, housenumber and housenumber suffix
** New actions**
......
......@@ -76,6 +76,18 @@ class ContactActionUtils {
$addressParams['street_address'] = $parameters->getParameter('street_address');
$hasAddressParams = true;
}
if ($parameters->getParameter('street_name')) {
$addressParams['street_name'] = $parameters->getParameter('street_name');
$hasAddressParams = true;
}
if ($parameters->getParameter('street_number')) {
$addressParams['street_number'] = $parameters->getParameter('street_number');
$hasAddressParams = true;
}
if ($parameters->getParameter('street_number_suffix')) {
$addressParams['street_number_suffix'] = $parameters->getParameter('street_number_suffix');
$hasAddressParams = true;
}
if ($parameters->getParameter('postal_code')) {
$addressParams['postal_code'] = $parameters->getParameter('postal_code');
$hasAddressParams = true;
......@@ -114,6 +126,9 @@ class ContactActionUtils {
$spec->addSpecification(new Specification('name', 'String', E::ts('Address name'), false));
$spec->addSpecification(new Specification('supplemental_address_1', 'String', E::ts('Supplemental address 1'), false));
$spec->addSpecification(new Specification('street_address', 'String', E::ts('Street and housenumber'), false));
$spec->addSpecification(new Specification('street_name', 'String', E::ts('Street name'), false));
$spec->addSpecification(new Specification('street_number', 'String', E::ts('Housenumber'), false));
$spec->addSpecification(new Specification('street_number_suffix', 'String', E::ts('Housenumber Suffix'), false));
$spec->addSpecification(new Specification('postal_code', 'String', E::ts('Postal code'), false));
$spec->addSpecification(new Specification('city', 'String', E::ts('City'), false));
$spec->addSpecification(new Specification('country_id', 'Integer', E::ts('Country ID'), false));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment