diff --git a/app/Factory/InvoiceFactory.php b/app/Factory/InvoiceFactory.php index 934fffb1583e..1c5d46660671 100644 --- a/app/Factory/InvoiceFactory.php +++ b/app/Factory/InvoiceFactory.php @@ -49,6 +49,7 @@ class InvoiceFactory $invoice->user_id = $user_id; $invoice->company_id = $company_id; $invoice->recurring_id = null; + $invoice->exchange_rate = 1; return $invoice; } diff --git a/app/Http/Controllers/SelfUpdateController.php b/app/Http/Controllers/SelfUpdateController.php index eed24a5f7c60..98c6ec0d8ece 100644 --- a/app/Http/Controllers/SelfUpdateController.php +++ b/app/Http/Controllers/SelfUpdateController.php @@ -269,10 +269,7 @@ class SelfUpdateController extends BaseController if(strpos($file->getPathname(), '.git') !== false) continue; - //nlog($file->getPathname()); - if ($file->isFile() && ! $file->isWritable()) { - // throw new FilePermissionsFailure($file); nlog("Cannot update system because {$file->getFileName()} is not writable"); throw new FilePermissionsFailure("Cannot update system because {$file->getFileName()} is not writable"); return false;