Merge pull request #6126 from beganovich/v5-2406-duplicated-custom-fields-in-company

Fix issue with duplicated company fields
This commit is contained in:
Benjamin Beganović 2021-06-24 17:19:15 +02:00 committed by GitHub
commit 8b73a4be14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,10 +137,6 @@ class Design extends BaseDesign
$elements[] = ['element' => 'p', 'content' => $variable, 'show_empty' => false, 'properties' => ['data-ref' => 'company_details-' . substr($variable, 1)]];
}
foreach (['company1', 'company2', 'company3', 'company4'] as $field) {
$elements[] = ['element' => 'p', 'content' => $this->getCustomFieldValue($field), 'show_empty' => false, 'properties' => ['data-ref' => 'company_details-' . $field]];
}
return $elements;
}