summaryrefslogtreecommitdiff
path: root/addons/website_slides/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_slides/controllers/main.py')
-rw-r--r--addons/website_slides/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_slides/controllers/main.py b/addons/website_slides/controllers/main.py
index 4c98b0bca94..e6b71cc9ff2 100644
--- a/addons/website_slides/controllers/main.py
+++ b/addons/website_slides/controllers/main.py
@@ -1024,7 +1024,7 @@ class WebsiteSlides(WebsiteProfile):
# minutes to hours conversion
values['completion_time'] = int(post['duration']) / 60
- category_id = False
+ category = False
# handle creation of new categories on the fly
if post.get('category_id'):
category_id = post['category_id'][0]
@@ -1050,7 +1050,7 @@ class WebsiteSlides(WebsiteProfile):
return {'error': _('Internal server error, please try again later or contact administrator.\nHere is the error message: %s') % e}
# ensure correct ordering by re sequencing slides in front-end (backend should be ok thanks to list view)
- channel._resequence_slides(slide, category)
+ channel._resequence_slides(slide, force_category=category)
redirect_url = "/slides/slide/%s" % (slide.id)
if channel.channel_type == "training" and not slide.slide_type == "webpage":