Fix issue with entity footer items causing 500 error

This commit is contained in:
Benjamin Beganović 2021-02-18 10:12:57 +01:00
parent dd72740534
commit b7a9700f90

View File

@ -423,7 +423,7 @@ class Design extends BaseDesign
{ {
$_variables = array_key_exists('variables', $this->context) $_variables = array_key_exists('variables', $this->context)
? $this->context['variables'] ? $this->context['variables']
: []; : ['values' => ['$entity.public_notes' => nl2br($this->entity->public_notes), '$entity.terms' => $this->entity->terms, '$entity_footer' => $this->entity->footer], 'labels' => []];
if ($this->type == 'delivery_note') { if ($this->type == 'delivery_note') {
return []; return [];