Commit 7ab40898 authored by jaapjansma's avatar jaapjansma
Browse files

Fixed bug with MailingGroupType.

parent 54cd6fbf
Version 1.13 (under development)
Version 1.13
============
* Fixed bug with MailingGroupType.
Version 1.12
============
......
......@@ -26,7 +26,7 @@ class CountryIsoCodeType extends AbstractType implements OptionListInterface {
return FALSE;
}
$countries = $this->getOptions([]);
$countries = $this->getOptions($allValues);
if (!isset($countries[$value])) {
return FALSE;
}
......
......@@ -47,7 +47,7 @@ class CountryType extends AbstractType implements OptionListInterface {
return FALSE;
}
$countries = $this->getOptions([]);
$countries = $this->getOptions($allValues);
if (!isset($countries[$value])) {
return FALSE;
}
......
......@@ -28,7 +28,7 @@ class FinancialTypeType extends AbstractType implements OptionListInterface {
return FALSE;
}
$financialTypes = $this->getOptions([]);
$financialTypes = $this->getOptions($allValues);
if (!isset($financialTypes[$value])) {
return FALSE;
}
......
......@@ -41,7 +41,7 @@ class MailingGroupType extends AbstractType implements OptionListInterface {
public function validateValue($value, $allValues = []) {
$multiple = $this->configuration->get('multiple') ? TRUE : FALSE;
$groups = $this->getOptions();
$groups = $this->getOptions($allValues);
if ($multiple && is_array($value)) {
foreach ($value as $valueItem) {
if (\CRM_Utils_Type::validate($valueItem, 'Integer', FALSE) === NULL) {
......
......@@ -28,7 +28,7 @@ class MembershipTypeType extends AbstractType implements OptionListInterface {
return FALSE;
}
$membershipTypes = $this->getOptions([]);
$membershipTypes = $this->getOptions($allValues);
if (!isset($membershipTypes[$value])) {
return FALSE;
}
......
......@@ -42,7 +42,7 @@ class ParticipantStatusType extends AbstractType implements OptionListInterface
public function validateValue($value, $allValues = []) {
$multiple = $this->configuration->get('multiple') ? TRUE : FALSE;
$options = $this->getOptions();
$options = $this->getOptions($allValues);
if ($multiple && is_array($value)) {
foreach ($value as $valueItem) {
......
......@@ -47,7 +47,7 @@ class StateProvinceType extends AbstractType implements OptionListInterface {
return FALSE;
}
$states = $this->getOptions([]);
$states = $this->getOptions($allValues);
if (!isset($states[$value])) {
return FALSE;
}
......
......@@ -39,7 +39,7 @@ class WeekDays extends AbstractType implements OptionListInterface {
public function validateValue($value, $allValues = []) {
$multiple = $this->configuration->get('multiple') ? TRUE : FALSE;
$options = $this->getOptions();
$options = $this->getOptions($allValues);
if ($multiple && is_array($value)) {
foreach ($value as $valueItem) {
if (\CRM_Utils_Type::validate($valueItem, 'String', FALSE) === NULL) {
......
......@@ -16,8 +16,8 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
<url desc="Action-Provider Extension">https://lab.civicrm.org/extensions/action-provider</url>
</urls>
<releaseDate>2020-09-10</releaseDate>
<version>1.13-dev</version>
<releaseDate>2020-09-16</releaseDate>
<version>1.13</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
......
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