mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fix logic for all_pages_header/footer
This commit is contained in:
parent
14dc3ea2aa
commit
2635b8c090
@ -163,7 +163,11 @@ trait PdfMakerUtilities
|
|||||||
|
|
||||||
public function processOptions()
|
public function processOptions()
|
||||||
{
|
{
|
||||||
if (! isset($this->options['all_pages_header']) && ! isset($this->options['all_pages_footer'])) {
|
if (!isset($this->options['all_pages_header']) || $this->options['all_pages_header'] == false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($this->options['all_pages_footer']) || $this->options['all_pages_footer'] == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,6 +269,8 @@ trait PdfMakerUtilities
|
|||||||
$this->document->getElementById('repeat-content')->appendChild($clone);
|
$this->document->getElementById('repeat-content')->appendChild($clone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
info($this->data['options']);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$header = $this->document->getElementById('header') &&
|
$header = $this->document->getElementById('header') &&
|
||||||
isset($this->data['options']['all_pages_header']) &&
|
isset($this->data['options']['all_pages_header']) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user