Commit 5f102780 authored by Xiaowu Zhang's avatar Xiaowu Zhang

CurrencyConfiguratorItem: getResultValue is not Case sensitive

parent d1b4dfc0
...@@ -63,9 +63,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -63,9 +63,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject):
error_list = [] error_list = []
title = self.getTitle() title = self.getTitle()
reference = self.getReference() reference = self.getReference()
# XXX FIXME This is not exactly desired behaviour currency = getattr(currency_module, reference, None)
currency = self.portal_catalog.getResultValue(id=reference,
portal_type="Currency")
if currency is None: if currency is None:
error_list.append(self._createConstraintMessage( error_list.append(self._createConstraintMessage(
"Currency %s should be created" % reference)) "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