Merge pull request #15578 from Tim-Otte/fix-product-supplier-price-extrafield

FIX for product supplier price extrafields
This commit is contained in:
Laurent Destailleur 2020-11-30 15:44:04 +01:00 committed by GitHub
commit 6f0d49d68d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -652,7 +652,7 @@ abstract class CommonDocGenerator
{
$columns = "";
foreach ($extralabels as $key)
foreach ($extralabels as $key => $label)
{
$columns .= "$key, ";
}
@ -666,7 +666,7 @@ abstract class CommonDocGenerator
{
$resql = $this->db->fetch_object($resql);
foreach ($extralabels as $key)
foreach ($extralabels as $key => $label)
{
$resarray['line_product_supplier_'.$key] = $resql->{$key};
}