Commit 9a03adeb authored by Jérome Perrin's avatar Jérome Perrin

Mapping is a category set on the organisation, not the category.

This use to work because categories are metanode and metanode were organisations
parent 2a99537e
...@@ -75,7 +75,7 @@ def getCurrencyForSection(section_url):\n ...@@ -75,7 +75,7 @@ def getCurrencyForSection(section_url):\n
return currency\n return currency\n
\n \n
# then from mapping category\n # then from mapping category\n
mapping = section.getMappingValue(portal_type=\'Organisation\')\n mapping = section.getMappingRelatedValue(portal_type=\'Organisation\')\n
if mapping is not None and mapping.getPriceCurrency():\n if mapping is not None and mapping.getPriceCurrency():\n
return mapping.getPriceCurrency()\n return mapping.getPriceCurrency()\n
\n \n
......
1486 1487
\ No newline at end of file \ No newline at end of file
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