Commit 5d27e7f8 authored by jaapjansma's avatar jaapjansma

Added action to create a repeated event

parents 9d8acafb 30e91ed9
......@@ -7,6 +7,7 @@ Version 1.4 (not yet released)
* Added action to create an organization
* Added action to retrieve the labels from option values
* Added action to repeat an event
* Added action to create a case
Version 1.3
-----------
......
......@@ -99,14 +99,14 @@ class ContactActionUtils {
$addressParams['name'] = $parameters->getParameter('name');
$hasAddressParams = true;
}
if ($parameters->getParameter('supplemental_address_1')) {
$addressParams['supplemental_address_1'] = $parameters->getParameter('supplemental_address_1');
$hasAddressParams = true;
}
if ($parameters->getParameter('street_address')) {
$addressParams['street_address'] = $parameters->getParameter('street_address');
$hasAddressParams = true;
}
if ($parameters->getParameter('supplemental_address_1')) {
$addressParams['supplemental_address_1'] = $parameters->getParameter('supplemental_address_1');
$hasAddressParams = true;
}
if ($parameters->getParameter('street_name')) {
$addressParams['street_name'] = $parameters->getParameter('street_name');
$hasAddressParams = true;
......@@ -127,6 +127,10 @@ class ContactActionUtils {
$addressParams['city'] = $parameters->getParameter('city');
$hasAddressParams = true;
}
if ($parameters->getParameter('state')) {
$addressParams['state_province_id'] = $parameters->getParameter('state');
$hasAddressParams = true;
}
if ($parameters->getParameter('country_id')) {
$addressParams['country_id'] = $parameters->getParameter('country_id');
$hasAddressParams = true;
......@@ -157,14 +161,15 @@ class ContactActionUtils {
*/
public static function createAddressParameterSpecification(SpecificationBag $spec) {
$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('supplemental_address_1', 'String', E::ts('Supplemental address 1'), 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_unit', 'String', E::ts('Street Unit'), 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));
$spec->addSpecification(new Specification('state_province_id', 'Integer', E::ts('State/Province ID'), false, null, 'StateProvince'));
$spec->addSpecification(new Specification('country_id', 'Integer', E::ts('Country ID'), false, null, 'Country'));
}
......
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