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:
parent
ff5a850e8d
commit
20c818cf97
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user