Merge pull request #14015 from ptibogxiv/patch-342

FIX php error
This commit is contained in:
Laurent Destailleur 2020-06-01 20:17:22 +02:00 committed by GitHub
commit 69c3b4b4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2523,6 +2523,8 @@ class Form
$outdurationvalue = $outtype == Product::TYPE_SERVICE ?substr($objp->duration, 0, dol_strlen($objp->duration) - 1) : '';
$outdurationunit = $outtype == Product::TYPE_SERVICE ?substr($objp->duration, -1) : '';
if ($outorigin && !empty($conf->global->PRODUCT_SHOW_ORIGIN_IN_COMBO)) require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
// Units
$outvalUnits = '';
if (!empty($conf->global->PRODUCT_USE_UNITS)) {