Browse Source

Merge branch 'dev'

prodstable
Guillaume Bourgeois 2 years ago
parent
commit
a78dd534d0
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      common/models/Document.php

+ 3
- 2
common/models/Document.php View File

{ {
$filenameComplete = $this->getFilenameComplete(); $filenameComplete = $this->getFilenameComplete();


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


if (file_exists($filenameComplete)) { if (file_exists($filenameComplete)) {
return Yii::$app->response->sendFile($filenameComplete, $this->getFilename(), ['inline' => true]); return Yii::$app->response->sendFile($filenameComplete, $this->getFilename(), ['inline' => true]);

Loading…
Cancel
Save