Fix: Mouvementstock::get_origin modulenme whith origintype

This commit is contained in:
DEMAREST Maxime 2020-02-20 16:19:28 +01:00
parent c29e1e78f3
commit 4630525973

View File

@ -984,7 +984,7 @@ class MouvementStock extends CommonObject
// Separate originetype with "@" : left part is class name, right part is module name
$origintype_array = explode('@', $origintype);
$classname = ucfirst($origintype_array[0]);
$modulename = empty($origintype_array[1]) ? $classname : empty($origintype_array[1]);
$modulename = empty($origintype_array[1]) ? $classname : $origintype_array[1];
$result=dol_include_once('/'.$modulename.'/class/'.strtolower($classname).'.class.php');
if ($result)
{