Commit 2bc21e49 authored by Jérome Perrin's avatar Jérome Perrin

don't fail if the section doesn't have a group.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10064 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 290e3516
...@@ -92,9 +92,9 @@ destination_section = transaction.getDestinationSectionValue(\n ...@@ -92,9 +92,9 @@ destination_section = transaction.getDestinationSectionValue(\n
# do we want to check validity for destination as well?\n # do we want to check validity for destination as well?\n
check_for_destination = 0\n check_for_destination = 0\n
if source_section is not None and destination_section is not None:\n if source_section is not None and destination_section is not None:\n
source_section_group = source_section.getGroup().lstrip(\'group/\').split(\'/\')\n source_section_group = source_section.getGroup(\'\').lstrip(\'group/\').split(\'/\')\n
destination_section_group = destination_section\\\n destination_section_group = destination_section\\\n
.getGroup().lstrip(\'group/\').split(\'/\')\n .getGroup(\'\').lstrip(\'group/\').split(\'/\')\n
if destination_section_group and source_section_group and \\\n if destination_section_group and source_section_group and \\\n
destination_section_group[0] == source_section_group[0]:\n destination_section_group[0] == source_section_group[0]:\n
check_for_destination = 1\n check_for_destination = 1\n
......
46 47
\ 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