mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6126 from beganovich/v5-2406-duplicated-custom-fields-in-company
Fix issue with duplicated company fields
This commit is contained in:
commit
8b73a4be14
@ -137,10 +137,6 @@ class Design extends BaseDesign
|
|||||||
$elements[] = ['element' => 'p', 'content' => $variable, 'show_empty' => false, 'properties' => ['data-ref' => 'company_details-' . substr($variable, 1)]];
|
$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;
|
return $elements;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user