Skip to content

Commit

Permalink
Use the form model getLayout (rather than generic helper) for pdf tit…
Browse files Browse the repository at this point in the history
…le in email, so it adds the details template path.
  • Loading branch information
cheesegrits committed Jun 6, 2018
1 parent 5ff41b0 commit 1a2246b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fabrik_form/email/email.php
Expand Up @@ -554,7 +554,7 @@ protected function pdfAttachment(&$thisAttachments)
}

// Store the file in the tmp folder so it can be attached
$layout = Html::getLayout('form.fabrik-pdf-title');
$layout = $model->getLayout('form.fabrik-pdf-title');
$displayData = new stdClass;
$displayData->doc = $document;
$displayData->model = $model;
Expand Down

0 comments on commit 1a2246b

Please sign in to comment.