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

the test for is_source was wrong

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24469 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent abb1dba4
......@@ -101,8 +101,10 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n
total_credit += credit\n
\n
transaction = mvt.getParentValue()\n
is_source = 0\n
if transaction.getSourceSection():\n
is_source = brain.section_relative_url.startswith(\n
transaction.getSourceSection() or \'\')\n
transaction.getSourceSection())\n
\n
if is_source:\n
mirror_section_title = mvt.getDestinationSectionTitle()\n
......
803
\ No newline at end of file
805
\ 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