mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:24:31 -04: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;
|
$custom_fields = $company->custom_fields;
|
||||||
|
|
||||||
if (!$custom_fields) {
|
if (!$custom_fields) {
|
||||||
return [];
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (self::$custom_fields as $cf) {
|
foreach (self::$custom_fields as $cf) {
|
||||||
@ -385,7 +385,7 @@ class Designer {
|
|||||||
|
|
||||||
foreach ($matches as $match) {
|
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) {
|
foreach ($variables as $key => $value) {
|
||||||
if ($value == $match) {
|
if ($value == $match) {
|
||||||
unset($variables[$key]);
|
unset($variables[$key]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user