Document show fixed attachment

This commit is contained in:
Cüneyt Şentürk 2021-01-26 14:06:09 +03:00
parent 4fc30e354d
commit 8ecf4289e8

View File

@ -512,7 +512,13 @@ abstract class DocumentShow extends Base
$this->hideNote = $hideNote; $this->hideNote = $hideNote;
$this->hideAttachment = $hideAttachment; $this->hideAttachment = $hideAttachment;
$this->attachment = !empty($attachment) ? $attachment : !empty($document) ? $document->attachment : ''; $this->attachment = '';
if (!empty($attachment)) {
$this->attachment = $attachment;
} else if (!empty($document)) {
$this->attachment = $document->attachment;
}
$this->textItems = $textItems; $this->textItems = $textItems;
$this->textQuantity = $textQuantity; $this->textQuantity = $textQuantity;