Commit c305e6cb authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

CurrencyConfiguratorItem: getResultValue is not Case sensitive

parent dba07242
......@@ -63,9 +63,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject):
error_list = []
title = self.getTitle()
reference = self.getReference()
# XXX FIXME This is not exactly desired behaviour
currency = self.portal_catalog.getResultValue(id=reference,
portal_type="Currency")
currency = getattr(currency_module, reference, None)
if currency is None:
error_list.append(self._createConstraintMessage(
"Currency %s should be created" % reference))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment