[-] BO: Fix module listing with addons module with default currency not on the xml #PSCFV-8005

This commit is contained in:
Rémi Gaillard committed 2013-02-26 10:45:22 +01:00
1 parent 88340319dd
commit 499b81ae55
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -1177,12 +1177,12 @@ abstract class ModuleCore
$id_default_currency = Configuration::get('PS_CURRENCY_DEFAULT');
foreach ($prices as $currency => $price)
if ($id_currency = Currency::getIdByIsoCode($currency))
if ($id_default_currency == $id_currency)
{
{
$item->price = (float)$price;
$item->id_currency = (int)$id_currency;
}
if ($id_default_currency == $id_currency)
break;
}
}
$module_list[] = $item;
}