Commit 1d5329c7 authored by Lucas Carvalho's avatar Lucas Carvalho

fixed bug, now the products can be shown independent of the context on the web site without crash.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28694 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 36aec8d5
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#the goal of this script is to get all the related product of this section\n #the goal of this script is to get all the related product of this section\n
\n \n
if (context.getPortalType() != \'Web Section\'):\n if (context.getPortalType() != \'Web Section\'):\n
current_web_section = context.REQUEST.get(\'current_web_section\')\n current_web_section = context.REQUEST.get(\'current_web_section\', context)\n
else:\n else:\n
current_web_section = context\n current_web_section = context\n
\n \n
......
168 172
\ 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