Commit 4bf144c1 authored by Jérome Perrin's avatar Jérome Perrin

If style is forced in the request, Preference_getReportFormatItemList should...

If style is forced in the request, Preference_getReportFormatItemList should honor this forced style

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18430 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b872b99b
...@@ -68,7 +68,9 @@ ...@@ -68,7 +68,9 @@
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n N_ = portal.Base_translateString\n
\n \n
style = context.getPreferredReportStyle()\n style = container.REQUEST.get(\'your_portal_skin\',\n
context.getPreferredReportStyle())\n
\n
item_list = [(\'\', \'\')]\n item_list = [(\'\', \'\')]\n
\n \n
if style == \'ODS\':\n if style == \'ODS\':\n
...@@ -131,6 +133,7 @@ return item_list\n ...@@ -131,6 +133,7 @@ return item_list\n
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>N_</string> <string>N_</string>
<string>container</string>
<string>style</string> <string>style</string>
<string>item_list</string> <string>item_list</string>
</tuple> </tuple>
......
651 653
\ 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