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

Fix for custom values

This commit is contained in:
David Bomba 2020-10-24 18:01:07 +11:00
parent 70fe9e0d2c
commit 3e21c301a5

View File

@ -501,7 +501,9 @@ class HtmlEngine
if ($custom_fields && property_exists($custom_fields, $field)) {
$custom_field = $custom_fields->{$field};
$custom_field_parts = explode('|', $custom_field);
$custom_field = $custom_field_parts[1];
if(count($custom_field_parts) >= 2)
$custom_field = $custom_field_parts[1];
}
switch ($custom_field) {
@ -510,7 +512,7 @@ class HtmlEngine
break;
default:
return $value;
return is_null($value) ? '' : $value;
break;
}
}