Commit 0109efb6 authored by Nicolas Delaby's avatar Nicolas Delaby

subordination is defined only on persons

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24593 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f15090be
...@@ -75,10 +75,16 @@ if direction == \'out\':\n ...@@ -75,10 +75,16 @@ if direction == \'out\':\n
source_url = source\n source_url = source\n
source_section_url = person_subordination\n source_section_url = person_subordination\n
destination_url = destination\n destination_url = destination\n
destination_section_url = context.getSubordination()\n if context.getPortalType() == \'Person\':\n
destination_section_url = context.getSubordination()\n
else:\n
destination_section_url = destination\n
elif direction == \'in\':\n elif direction == \'in\':\n
source_url = destination\n source_url = destination\n
source_section_url = context.getSubordination()\n if context.getPortalType() == \'Person\':\n
source_section_url = context.getRelativeUrl()\n
else:\n
source_section_url = destination\n
destination_url = source\n destination_url = source\n
destination_section_url = person_subordination\n destination_section_url = person_subordination\n
else:\n else:\n
......
322 324
\ 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