Commit 6241abd8 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Klaus Wölfel

CurrencyConfiguratorItem: getResultValue is not Case sensitive

parent ce0a6273
......@@ -65,9 +65,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