Skip to content
Snippets Groups Projects
Commit 5db185ef authored by jaapjansma's avatar jaapjansma
Browse files

fixed getfields

parent 517bf3ef
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,8 @@ class Api implements OutputInterface, API_ProviderInterface, EventSubscriberInte
try {
$dataProcessor = \CRM_Dataprocessor_BAO_DataProcessor::getDataProcessorByOutputTypeAndName('api', $dataProcessorName);
foreach ($dataProcessor->getDataFlow()->getDataSpecification()->getFields() as $fieldSpec) {
foreach ($dataProcessor->getDataFlow()->getOutputFieldHandlers() as $outputFieldHandler) {
$fieldSpec = $outputFieldHandler->getOutputFieldSpecification();
$field = [
'name' => $fieldSpec->alias,
'title' => $fieldSpec->title,
......
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