Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
erikbrouwer
form-processor
Commits
7ab40898
Commit
7ab40898
authored
Sep 16, 2020
by
jaapjansma
Browse files
Fixed bug with MailingGroupType.
parent
54cd6fbf
Changes
10
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
7ab40898
Version 1.13
(under development)
Version 1.13
============
*
Fixed bug with MailingGroupType.
Version 1.12
============
...
...
Civi/FormProcessor/Type/CountryIsoCodeType.php
View file @
7ab40898
...
...
@@ -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
;
}
...
...
Civi/FormProcessor/Type/CountryType.php
View file @
7ab40898
...
...
@@ -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
;
}
...
...
Civi/FormProcessor/Type/FinancialTypeType.php
View file @
7ab40898
...
...
@@ -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
;
}
...
...
Civi/FormProcessor/Type/MailingGroupType.php
View file @
7ab40898
...
...
@@ -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
)
{
...
...
Civi/FormProcessor/Type/MembershipTypeType.php
View file @
7ab40898
...
...
@@ -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
;
}
...
...
Civi/FormProcessor/Type/ParticipantStatusType.php
View file @
7ab40898
...
...
@@ -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
)
{
...
...
Civi/FormProcessor/Type/StateProvinceType.php
View file @
7ab40898
...
...
@@ -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
;
}
...
...
Civi/FormProcessor/Type/WeekDays.php
View file @
7ab40898
...
...
@@ -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
)
{
...
...
info.xml
View file @
7ab40898
...
...
@@ -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-1
0
</releaseDate>
<version>
1.13
-dev
</version>
<releaseDate>
2020-09-1
6
</releaseDate>
<version>
1.13
</version>
<develStage>
stable
</develStage>
<compatibility>
<ver>
4.7
</ver>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment