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
Extensions
dataprocessor-token-output
Commits
bf77afce
Commit
bf77afce
authored
Nov 04, 2020
by
jaapjansma
Browse files
fixed issue with participant token
parent
6acd174a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Civi/DataProcessorTokenOutput/Output/AbstractToken.php
View file @
bf77afce
...
...
@@ -270,10 +270,14 @@ abstract class AbstractToken implements OutputInterface, TokenOutput {
$fieldSpecification
=
$dataSource
->
getAvailableFilterFields
()
->
getFieldSpecificationByAlias
(
$field_name
);
if
(
!
$fieldSpecification
)
{
throw
new
FieldNotFoundException
(
E
::
ts
(
"Requires a field with the name '%1' in the data source '%2'. Did you change the data source type?"
,
[
1
=>
$field_name
,
2
=>
$datasource_name
]));
$fieldSpecification
=
$dataSource
->
getAvailableFilterFields
()
->
getFieldSpecificationByName
(
$field_name
);
if
(
!
$fieldSpecification
)
{
throw
new
FieldNotFoundException
(
E
::
ts
(
"Requires a field with the name '%1' in the data source '%2'. Did you change the data source type?"
,
[
1
=>
$field_name
,
2
=>
$datasource_name
]));
}
}
$dataFlow
=
$dataSource
->
ensureField
(
$fieldSpecification
);
...
...
info.xml
View file @
bf77afce
...
...
@@ -13,8 +13,8 @@
<url
desc=
"Documentation"
>
https://lab.civicrm.org/extensions/dataprocessor-token-output/blob/master/README.md
</url>
<url
desc=
"Licensing"
>
http://www.gnu.org/licenses/agpl-3.0.html
</url>
</urls>
<releaseDate>
2020-
04-30
</releaseDate>
<version>
1.2
</version>
<releaseDate>
2020-
11-04
</releaseDate>
<version>
1.2
.1
</version>
<develStage>
stable
</develStage>
<compatibility>
<ver>
5.13
</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