From 1d5329c7a70e29bcaabe43c7e8c71e9d4a20d36b Mon Sep 17 00:00:00 2001
From: Lucas Carvalho <lucas@nexedi.com>
Date: Mon, 31 Aug 2009 13:14:14 +0000
Subject: [PATCH] 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
---
 .../erp5_commerce_widget_library/WebSection_getProductList.xml  | 2 +-
 bt5/erp5_commerce/bt/revision                                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/WebSection_getProductList.xml b/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/WebSection_getProductList.xml
index d5a63696c3..8d724e9e0b 100644
--- a/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/WebSection_getProductList.xml
+++ b/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce_widget_library/WebSection_getProductList.xml
@@ -57,7 +57,7 @@
 #the goal of this script is to get all the related product of this section\n
 \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
   current_web_section = context\n
 \n
diff --git a/bt5/erp5_commerce/bt/revision b/bt5/erp5_commerce/bt/revision
index a3090d211b..89a16a7ddc 100644
--- a/bt5/erp5_commerce/bt/revision
+++ b/bt5/erp5_commerce/bt/revision
@@ -1 +1 @@
-168
\ No newline at end of file
+172
\ No newline at end of file
-- 
2.30.9