update code toward php8 compliance
This commit is contained in:
parent
6617d595a6
commit
19796c9db1
@ -233,7 +233,7 @@ class modProduct extends DolibarrModules
|
|||||||
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
||||||
$this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('l.lang'=>'Language', 'l.label'=>'TranslatedLabel', 'l.description'=>'TranslatedDescription', 'l.note'=>'TranslatedNote'));
|
$this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('l.lang'=>'Language', 'l.label'=>'TranslatedLabel', 'l.description'=>'TranslatedDescription', 'l.note'=>'TranslatedNote'));
|
||||||
}
|
}
|
||||||
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
|
||||||
$this->export_fields_array[$r]['p.fk_unit'] = 'Unit';
|
$this->export_fields_array[$r]['p.fk_unit'] = 'Unit';
|
||||||
}
|
}
|
||||||
$this->export_TypeFields_array[$r] = array(
|
$this->export_TypeFields_array[$r] = array(
|
||||||
@ -640,7 +640,7 @@ class modProduct extends DolibarrModules
|
|||||||
if (isModEnabled('barcode')) {
|
if (isModEnabled('barcode')) {
|
||||||
$this->import_fields_array[$r] = array_merge($this->import_fields_array[$r], array('p.barcode'=>'BarCode'));
|
$this->import_fields_array[$r] = array_merge($this->import_fields_array[$r], array('p.barcode'=>'BarCode'));
|
||||||
}
|
}
|
||||||
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
|
||||||
$this->import_fields_array[$r]['p.fk_unit'] = 'Unit';
|
$this->import_fields_array[$r]['p.fk_unit'] = 'Unit';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -724,7 +724,7 @@ class modProduct extends DolibarrModules
|
|||||||
if (isModEnabled('barcode')) {
|
if (isModEnabled('barcode')) {
|
||||||
$import_sample = array_merge($import_sample, array('p.barcode'=>''));
|
$import_sample = array_merge($import_sample, array('p.barcode'=>''));
|
||||||
}
|
}
|
||||||
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
|
||||||
$import_sample = array_merge(
|
$import_sample = array_merge(
|
||||||
$import_sample,
|
$import_sample,
|
||||||
array(
|
array(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user