diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-11-26 13:11:39 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-11-26 17:00:41 +0100 |
| commit | fa015c4c2e085b4da75911855d7ea5ebebd23fec (patch) | |
| tree | 1f19df338664dcc7100dd2e8838194891cdf502e /addons/website_forum/controllers | |
| parent | 75534d358c8ce666b16091b9982379a2df87fe66 (diff) | |
[FIX] website_forum: edit post with tags
Tags are lost when editing a post as we handle the wrong parameter.
Editing a post should not erase its tags anymore.
Diffstat (limited to 'addons/website_forum/controllers')
| -rw-r--r-- | addons/website_forum/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 2438767e075..4a607b6fee8 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -358,7 +358,7 @@ class WebsiteForum(http.Controller): def post_save(self, forum, post, **kwargs): if 'post_name' in kwargs and not kwargs.get('post_name').strip(): return request.website.render('website.http_error', {'status_code': _('Bad Request'), 'status_message': _('Title should not be empty.')}) - post_tags = forum._tag_to_write_vals(kwargs.get('post_tag', '')) + post_tags = forum._tag_to_write_vals(kwargs.get('post_tags', '')) vals = { 'tag_ids': post_tags, 'name': kwargs.get('post_name'), |
