Browse Source

Merge branch 'dev'

prodstable
Guillaume Bourgeois 1 year ago
parent
commit
e08d2533fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Document.php

+ 1
- 1
common/models/Document.php View File

@@ -287,7 +287,7 @@ class Document extends ActiveRecordCommon
{
$filenameComplete = $this->getFilenameComplete();

if (!file_exists($filenameComplete)) {
if (!file_exists($filenameComplete) || $this->isStatusDraft()) {
$this->generatePdf(Pdf::DEST_FILE);
}


Loading…
Cancel
Save