Skip to content
Snippets Groups Projects
Commit fe955b8c authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4799 from hregis/3.8_order

Fix: $fileparams is not defined
parents a9058df7 7953f77b
Branches
Tags
No related merge requests found
...@@ -2377,6 +2377,7 @@ if ($action == 'create' && $user->rights->commande->creer) ...@@ -2377,6 +2377,7 @@ if ($action == 'create' && $user->rights->commande->creer)
$ref = dol_sanitizeFileName($object->ref); $ref = dol_sanitizeFileName($object->ref);
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php'; include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$fileparams = dol_most_recent_file($conf->commande->dir_output . '/' . $ref, preg_quote($ref, '/').'[^\-]+');
$file = $fileparams['fullname']; $file = $fileparams['fullname'];
// Define output language // Define output language
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment