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