Browse Source

[Backend] Documents : génération systématique du PDF du document s'il est en brouillon

refactoring
Guillaume Bourgeois 1 year ago
parent
commit
acdac3c57f
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