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

Merge pull request #4939 from beganovich/v5-1802-fix-pdf-values-issue

(v5) Fixes for tests
This commit is contained in:
Benjamin Beganović 2021-02-18 10:13:58 +01:00 committed by GitHub
commit 1d17b8c339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,7 +423,7 @@ class Design extends BaseDesign
{
$_variables = array_key_exists('variables', $this->context)
? $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') {
return [];