mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes
This commit is contained in:
parent
23ebe8d6e9
commit
60a3fd7863
@ -281,7 +281,7 @@ class EmailDefaults
|
||||
$documents = [];
|
||||
|
||||
/* Return early if the user cannot attach documents */
|
||||
if (!$this->email->company->account->hasFeature(Account::FEATURE_DOCUMENTS)) {
|
||||
if (!$this->email->company->account->hasFeature(Account::FEATURE_PDF_ATTACHMENT)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -312,7 +312,7 @@ class EmailDefaults
|
||||
}
|
||||
}
|
||||
|
||||
if(!$this->email->email_object->settings->document_email_attachment)
|
||||
if(!$this->email->email_object->settings->document_email_attachment || !$this->email->company->account->hasFeature(Account::FEATURE_DOCUMENTS))
|
||||
return $this;
|
||||
|
||||
/* Company Documents */
|
||||
|
@ -683,6 +683,8 @@ class HtmlEngine
|
||||
$data['labels'][$key.'_label'] = $value['label'];
|
||||
}
|
||||
|
||||
// nlog($data);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
@ -762,9 +764,6 @@ class HtmlEngine
|
||||
if ($country) {
|
||||
return $country->iso_3166_2;
|
||||
}
|
||||
// if ($country) {
|
||||
// return ctrans('texts.country_' . $country->iso_3166_2);
|
||||
// }
|
||||
|
||||
return ' ';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user