Commit 6ca886ed authored by Jérome Perrin's avatar Jérome Perrin

Folder_viewDeleteDialog proxy field could not find the original listbox if it's id were not listbox

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22088 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 239fa22f
...@@ -83,11 +83,13 @@ if uids == []:\n ...@@ -83,11 +83,13 @@ if uids == []:\n
# another proxy to this proxy.\n # another proxy to this proxy.\n
if form_id == \'Base_viewListModeRenderer\':\n if form_id == \'Base_viewListModeRenderer\':\n
form_id = context.Base_viewListModeRenderer.listbox.get_value(\'form_id\')\n form_id = context.Base_viewListModeRenderer.listbox.get_value(\'form_id\')\n
field_id = context.Base_viewListModeRenderer.listbox.get_value(\'field_id\')\n
\n \n
kw = {\'uid\': uids, \'form_id\': form_id}\n kw = {\'uid\': uids, \'form_id\': form_id, \'field_id\': field_id}\n
request.set(\'object_uid\', context.getUid())\n request.set(\'object_uid\', context.getUid())\n
request.set(\'uids\', uids)\n request.set(\'uids\', uids)\n
request.set(\'proxy_form_id\', form_id)\n request.set(\'proxy_form_id\', form_id)\n
request.set(\'proxy_field_id\', field_id)\n
\n \n
context.portal_selections.setSelectionParamsFor(\'folder_delete_selection\', kw)\n context.portal_selections.setSelectionParamsFor(\'folder_delete_selection\', kw)\n
return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n
...@@ -154,6 +156,7 @@ return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n ...@@ -154,6 +156,7 @@ return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n
<string>selected_uids</string> <string>selected_uids</string>
<string>message</string> <string>message</string>
<string>qs</string> <string>qs</string>
<string>field_id</string>
<string>kw</string> <string>kw</string>
</tuple> </tuple>
</value> </value>
......
...@@ -86,12 +86,14 @@ ...@@ -86,12 +86,14 @@
</item> </item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -196,7 +198,7 @@ ...@@ -196,7 +198,7 @@
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -276,12 +278,28 @@ ...@@ -276,12 +278,28 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>request/proxy_form_id | python: here.portal_selections.getSelectionParamsFor(\'folder_delete_selection\')[\'form_id\']</string> </value> <value> <string>request/proxy_field_id | python: here.portal_selections.getSelectionParamsFor(\'folder_delete_selection\').get(\'field_id\', \'listbox\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="5" aka="AAAAAAAAAAU="> <record id="5" aka="AAAAAAAAAAU=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>request/proxy_form_id | python: here.portal_selections.getSelectionParamsFor(\'folder_delete_selection\')[\'form_id\']</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Method" module="Products.Formulator.MethodField"/> <global name="Method" module="Products.Formulator.MethodField"/>
......
865 866
\ 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