[FIX] website_sale: deleted category on website product page

Product pages ulrs can be indexed by searches engines.
The product category can be included in the url.
If the category has been deleted, accessing
this page should still work anyway

opw-648008
This commit is contained in:
Denis Ledoux 2015-08-26 11:06:36 +02:00
parent cd9a77604f
commit 9b489e9d7c
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ class website_sale(http.Controller):
if category:
category = category_obj.browse(cr, uid, int(category), context=context)
category = category if category.exists() else False
attrib_list = request.httprequest.args.getlist('attrib')
attrib_values = [map(int,v.split("-")) for v in attrib_list if v]