diff --git a/ajax/invoices/temporary/save.php b/ajax/invoices/temporary/save.php index 998e95e52e476d1ec80b43d62219692ad2873025..42a9114d7b3b6c5c09ebd6ee50c85aa93681f862 100644 --- a/ajax/invoices/temporary/save.php +++ b/ajax/invoices/temporary/save.php @@ -68,7 +68,11 @@ function ($invoiceId, $data) { } foreach ($customerFiles as $entry) { - $Invoice->addCustomerFile($entry['hash'], $entry['options']); + try { + $Invoice->addCustomerFile($entry['hash'], $entry['options']); + } catch (\Exception $Exception) { + QUI\System\Log::writeException($Exception); + } } }