Fix issue with duplicated company fields

This commit is contained in:
Benjamin Beganović 2021-06-24 17:18:02 +02:00
parent 66bfbdc9d9
commit 61eea4fde2

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;
}