Merge pull request #13155 from indelog/fix-modoristomouv
Fix: Mouvementstock::get_origin modulenme whith origintype
This commit is contained in:
commit
efcc3443ad
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user