mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge pull request #6802 from turbo124/v5-develop
Fixes for settings Default Design
This commit is contained in:
commit
7278f7fb61
@ -28,9 +28,9 @@ class CloneQuoteToInvoiceFactory
|
||||
unset($quote_array['invoice_id']);
|
||||
unset($quote_array['id']);
|
||||
unset($quote_array['invitations']);
|
||||
//unset($quote_array['terms']);
|
||||
//unset($quote_array['public_notes']);
|
||||
//unset($quote_array['footer']);
|
||||
unset($quote_array['terms']);
|
||||
unset($quote_array['public_notes']);
|
||||
unset($quote_array['footer']);
|
||||
unset($quote_array['design_id']);
|
||||
|
||||
foreach ($quote_array as $key => $value) {
|
||||
|
@ -491,7 +491,7 @@ class DesignController extends BaseController
|
||||
|
||||
public function default(DefaultDesignRequest $request)
|
||||
{
|
||||
$design_id = $request->int('design_id');
|
||||
$design_id = $request->input('design_id');
|
||||
$entity = $request->input('entity');
|
||||
$company = auth()->user()->getCompany();
|
||||
|
||||
|
@ -257,7 +257,9 @@ class NinjaMailerJob implements ShouldQueue
|
||||
if(Ninja::isHosted() && $this->company->account->emailQuotaExceeded())
|
||||
return true;
|
||||
|
||||
|
||||
if(!str_contains($this->nmo->to_user->email, "@"))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user