Commit cef93695 authored by Jérome Perrin's avatar Jérome Perrin

Do not call 'getGroup' as it may not be defined on some nodes (eg.

Person)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5845 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 03a493aa
......@@ -117,10 +117,12 @@ for transaction in context\\\n
\n
destination_section = transaction.getDestinationSectionValue()\n
we_are_destination = destination_section is not None and (\'group/%s\' %\n
destination_section.getGroup(\'\')).startswith(transaction_section_category)\n
destination_section.getProperty(\'group\', \'\'))\\\n
.startswith(transaction_section_category)\n
source_section = transaction.getSourceSectionValue()\n
we_are_source = (source_section is not None) and (\'group/%s\' %\n
source_section.getGroup(\'\')).startswith(transaction_section_category)\n
source_section.getProperty(\'group\', \'\'))\\\n
.startswith(transaction_section_category)\n
\n
if we_are_source :\n
specific_reference = transaction.getSourceReference()\n
......
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