Merge pull request #13155 from indelog/fix-modoristomouv

Fix: Mouvementstock::get_origin modulenme whith origintype
This commit is contained in:
Laurent Destailleur 2020-02-21 18:05:23 +01:00 committed by GitHub
commit efcc3443ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{