Commit bf77afce authored by jaapjansma's avatar jaapjansma
Browse files

fixed issue with participant token

parent 6acd174a
......@@ -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);
......
......@@ -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>
......
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