Merge pull request #24019 from grandoc/new_branch_23_02_2023
fix : Warning: Undefined property: Conf:: in /home/httpd/vhosts/aflac…
This commit is contained in:
commit
6000b4830a
@ -1649,9 +1649,9 @@ if ($action == 'create') {
|
||||
if ($objp->subprice >= 0) {
|
||||
$colspan = 6;
|
||||
|
||||
if ($conf->margin->enabled && getDolGlobalString('PRODUCT_USE_UNITS')) {
|
||||
if (isModEnabled('margin') && getDolGlobalString('PRODUCT_USE_UNITS')) {
|
||||
$colspan = 8;
|
||||
} elseif ($conf->margin->enabled || getDolGlobalString('PRODUCT_USE_UNITS')) {
|
||||
} elseif (isModEnabled('margin') || getDolGlobalString('PRODUCT_USE_UNITS')) {
|
||||
$colspan = 7;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user