Skip to content
Snippets Groups Projects
Commit 946d0db5 authored by jaapjansma's avatar jaapjansma
Browse files

update

parent 6b09a3a4
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,10 @@ class CRM_Contact_Form_DataProcessorContactSummaryTab extends CRM_DataprocessorS ...@@ -129,7 +129,10 @@ class CRM_Contact_Form_DataProcessorContactSummaryTab extends CRM_DataprocessorS
2 => $datasource_name 2 => $datasource_name
))); )));
} }
$fieldSpecification = clone $dataSource->getAvailableFilterFields()->getFieldSpecificationByName($field_name); $fieldSpecification = $dataSource->getAvailableFilterFields()->getFieldSpecificationByAlias($field_name);
if (!$fieldSpecification) {
$fieldSpecification = $dataSource->getAvailableFilterFields()->getFieldSpecificationByName($field_name);
}
if (!$fieldSpecification) { 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?", array( throw new FieldNotFoundException(E::ts("Requires a field with the name '%1' in the data source '%2'. Did you change the data source type?", array(
1 => $field_name, 1 => $field_name,
...@@ -137,6 +140,7 @@ class CRM_Contact_Form_DataProcessorContactSummaryTab extends CRM_DataprocessorS ...@@ -137,6 +140,7 @@ class CRM_Contact_Form_DataProcessorContactSummaryTab extends CRM_DataprocessorS
))); )));
} }
$fieldSpecification = clone $fieldSpecification;
$fieldSpecification->alias = 'contact_summary_tab_contact_id'; $fieldSpecification->alias = 'contact_summary_tab_contact_id';
$dataFlow = $dataSource->ensureField($fieldSpecification); $dataFlow = $dataSource->ensureField($fieldSpecification);
if ($dataFlow && $dataFlow instanceof SqlDataFlow) { if ($dataFlow && $dataFlow instanceof SqlDataFlow) {
......
...@@ -22,6 +22,12 @@ The extension is licensed under [AGPL-3.0](LICENSE.txt). ...@@ -22,6 +22,12 @@ The extension is licensed under [AGPL-3.0](LICENSE.txt).
* [Using API output to fetch the results in data processor](docs/HowToAddAPIDataOutput.md) * [Using API output to fetch the results in data processor](docs/HowToAddAPIDataOutput.md)
* How to export and import a data processor * How to export and import a data processor
## Related extenions
* [dataprocessor-token-output](https://lab.civicrm.org/extensions/dataprocessor-token-output) Create tokens from a data processor
* [dataprocessor-vega-graphs](https://lab.civicrm.org/extensions/dataprocessor-vega-graphs) Graph output of a dataprocessor
## Developer documentation ## Developer documentation
* Enhancing the data processor * Enhancing the data processor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment