Merge pull request #10817 from wdammak/patch-35

Fix Warning: Invalid argument - dynamic_price
This commit is contained in:
Laurent Destailleur 2019-03-14 14:09:21 +01:00 committed by GitHub
commit 993183aec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,10 +157,13 @@ class PriceParser
$extrafields = new ExtraFields($this->db);
$extralabels = $extrafields->fetch_name_optionals_label('product', true);
$product->fetch_optionals();
foreach ($extrafields->attributes[$product->table_element]['label'] as $key=>$label)
{
$values["extrafield_".$key] = $product->array_options['options_'.$key];
}
if (is_array($extrafields->attributes[$product->table_element]['label']))
{
foreach ($extrafields->attributes[$product->table_element]['label'] as $key=>$label)
{
$values["extrafield_".$key] = $product->array_options['options_'.$key];
}
}
//Process any pending updaters
$price_updaters = new PriceGlobalVariableUpdater($this->db);