Commit 3382df0c authored by Jérome Perrin's avatar Jérome Perrin

set selection params explicitly, otherwise previous value will be used when

nothing is selected


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24852 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8472869
...@@ -97,18 +97,21 @@ params = dict(at_date=at_date,\n ...@@ -97,18 +97,21 @@ params = dict(at_date=at_date,\n
section_uid=section_uid,\n section_uid=section_uid,\n
node_uid=traverse(node).getUid(),\n node_uid=traverse(node).getUid(),\n
simulation_state=simulation_state,\n simulation_state=simulation_state,\n
detailed_from_date_summary=detailed_from_date_summary)\n detailed_from_date_summary=detailed_from_date_summary,\n
hide_grouping=omit_grouping_reference,\n
from_date=None,\n
payment_uid=None,\n
mirror_section_uid=None,)\n
\n \n
if from_date:\n if from_date:\n
params[\'from_date\'] = from_date\n params[\'from_date\'] = from_date\n
if payment:\n if payment:\n
params[\'payment_uid\'] = traverse(payment).getUid()\n params[\'payment_uid\'] = traverse(payment).getUid()\n
if mirror_section:\n if mirror_section:\n
params[\'mirror_section_uid\'] = traverse(mirror_section).getUid()\n params[\'mirror_section_uid\'] = traverse(mirror_section).getUid() \n
if parent_portal_type:\n if parent_portal_type:\n
params[\'parent_portal_type\'] = parent_portal_type\n params[\'parent_portal_type\'] = parent_portal_type\n
if omit_grouping_reference:\n \n
params[\'hide_grouping\'] = 1\n
\n \n
selection_columns = [\n selection_columns = [\n
(\'Movement_getSpecificReference\', \'Transaction Reference\'),\n (\'Movement_getSpecificReference\', \'Transaction Reference\'),\n
......
...@@ -90,10 +90,8 @@ params = dict(at_date=at_date,\n ...@@ -90,10 +90,8 @@ params = dict(at_date=at_date,\n
simulation_state=simulation_state,\n simulation_state=simulation_state,\n
period_start_date=period_start_date,\n period_start_date=period_start_date,\n
movement_portal_type=portal.getPortalAccountingMovementTypeList(),\n movement_portal_type=portal.getPortalAccountingMovementTypeList(),\n
no_mirror_section_uid_cache=1)\n no_mirror_section_uid_cache=1,\n
\n hide_grouping=request.get(\'omit_grouping_reference\', False))\n
if request.get(\'omit_grouping_reference\', False):\n
params[\'hide_grouping\'] = True\n
\n \n
if from_date:\n if from_date:\n
params[\'from_date\'] = from_date\n params[\'from_date\'] = from_date\n
......
825 826
\ 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