Commit b9228f0e authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Titouan Soulard

CurrencyConfiguratorItem: getResultValue is not Case sensitive

parent 814c33a5
......@@ -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