Skip to content

Commit

Permalink
fix template deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Feb 7, 2024
1 parent 55b6748 commit 4ce9803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/modules/modEasydocgenerator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ public function init($options = '')
'contract',
'stock',
'ticket',
'fichinter',
'supplier_order',
];

foreach ($modules as $module) {
Expand All @@ -259,7 +261,7 @@ public function init($options = '')
if (file_exists($src) && !file_exists($dest)) {
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
dol_mkdir($dirtemplate);
$result = dol_copy($src, $dest, 0, 0);
$result = dol_copy($src, $dest, '0', 0, 0, 1);
if ($result < 0) {
$langs->load("errors");
$this->error = $langs->trans('ErrorFailToCopyFile', $src, $dest);
Expand Down

0 comments on commit 4ce9803

Please sign in to comment.