Release 2.0.4 (#3883)
* fix column data truncated * calculate internal rate from user * show internal rate in timesheet listing * Fixed: responsivenss and size of report start page icons * fix: name display in dropdowns (and added tests) * translate reload button * fix invoice date might be in the past * fail safe customer name handling * translate invoice_date and invoice_date help * prevent URLs like start=null * prevent to reload select twice
This commit is contained in:
@@ -365,11 +365,15 @@ final class CustomerController extends AbstractController
|
||||
#[IsGranted('view', 'customer')]
|
||||
public function downloadVCard(Customer $customer): Response
|
||||
{
|
||||
if ($customer->getName() === null || \strlen($customer->getName()) === 0) {
|
||||
throw new \Exception('Customer name cannot be null');
|
||||
}
|
||||
|
||||
$vcard = new VCard();
|
||||
|
||||
$contact = $customer->getContact() ?? $customer->getName();
|
||||
$contact = $customer->getContact();
|
||||
if ($contact === null || \strlen($contact) === 0) {
|
||||
$contact = 'Unknown';
|
||||
$contact = $customer->getName();
|
||||
}
|
||||
|
||||
$contact = explode(' ', $contact);
|
||||
|
||||
Reference in New Issue
Block a user