Update html.formfile.class.php

This commit is contained in:
Laurent Destailleur 2018-05-25 11:19:38 +02:00 committed by GitHub
parent 1f43882bb7
commit 3d71ce8297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -483,17 +483,17 @@ class FormFile
if (is_array($genallowed)) $modellist=$genallowed;
else
{
include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_stock.class.php';
include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_stock.php';
$modellist=ModelePDFStock::liste_modeles($this->db);
}
}
elseif ($modulepart == 'mouvement')
elseif ($modulepart == 'movement')
{
if (is_array($genallowed)) $modellist=$genallowed;
else
{
include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_stock.class.php';
$modellist=ModelePDFMouvement::liste_modeles($this->db);
include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_movement.php';
$modellist=ModelePDFMovement::liste_modeles($this->db);
}
}
elseif ($modulepart == 'export')