Merge pull request #17901 from frederic34/patch-8

fix warning
This commit is contained in:
Laurent Destailleur 2021-06-13 16:16:06 +02:00 committed by GitHub
commit 1c7f141f06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1265,8 +1265,8 @@ if ($resql) {
$product_static->id = $obj->rowid;
$product_static->ref = $obj->ref;
$product_static->ref_fourn = $obj->ref_supplier; // deprecated
$product_static->ref_supplier = $obj->ref_supplier;
$product_static->ref_fourn = empty($obj->ref_supplier) ? '' : $obj->ref_supplier; // deprecated
$product_static->ref_supplier = empty($obj->ref_supplier) ? '' : $obj->ref_supplier;
$product_static->label = $obj->label;
$product_static->finished = $obj->finished;
$product_static->type = $obj->fk_product_type;