Fix: Not reading external barcode numeration module
This commit is contained in:
parent
05a653ee5f
commit
5783c185bd
@ -10,7 +10,7 @@
|
|||||||
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
|
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
|
||||||
* Copyright (C) 2011-2014 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
* Copyright (C) 2011-2014 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
||||||
* Copyright (C) 2014 Cédric Gross <c.gross@kreiz-it.fr>
|
* Copyright (C) 2014 Cédric Gross <c.gross@kreiz-it.fr>
|
||||||
* Copyright (C) 2014 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2014-2015 Ferran Marcet <fmarcet@2byte.es>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -820,8 +820,13 @@ else
|
|||||||
if (! empty($conf->barcode->enabled) && ! empty($conf->global->BARCODE_PRODUCT_ADDON_NUM))
|
if (! empty($conf->barcode->enabled) && ! empty($conf->global->BARCODE_PRODUCT_ADDON_NUM))
|
||||||
{
|
{
|
||||||
$module=strtolower($conf->global->BARCODE_PRODUCT_ADDON_NUM);
|
$module=strtolower($conf->global->BARCODE_PRODUCT_ADDON_NUM);
|
||||||
$result=dol_include_once('/core/modules/barcode/'.$module.'.php');
|
$dirbarcode=array_merge(array('/core/modules/barcode/'),$conf->modules_parts['barcode']);
|
||||||
if ($result > 0)
|
foreach ($dirbarcode as $dirroot)
|
||||||
|
{
|
||||||
|
$res=dol_include_once($dirroot.$module.'.php');
|
||||||
|
if ($res) break;
|
||||||
|
}
|
||||||
|
if ($res > 0)
|
||||||
{
|
{
|
||||||
$modBarCodeProduct =new $module();
|
$modBarCodeProduct =new $module();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user