1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Minor fixes. (#3430)

* Fix for pdf_variables

* Fixes for notification

* Fixes for viewing invoice with NO company custom_fields
This commit is contained in:
David Bomba 2020-03-06 07:30:12 +11:00 committed by GitHub
parent ff5a850e8d
commit 20c818cf97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,7 @@ class Designer {
$custom_fields = $company->custom_fields;
if (!$custom_fields) {
return [];
return $data;
}
foreach (self::$custom_fields as $cf) {
@ -385,7 +385,7 @@ class Designer {
foreach ($matches as $match) {
if (!property_exists($custom_fields, $match) || (strlen($custom_fields->{ $match}) == 0)) {
if (!property_exists($custom_fields, $match) || (strlen($custom_fields->{$match}) == 0)) {
foreach ($variables as $key => $value) {
if ($value == $match) {
unset($variables[$key]);