diff options
| author | Aurélien Warnon <awa@odoo.com> | 2019-08-06 11:52:19 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-08-08 08:37:22 +0000 |
| commit | 654e9dd658fa6efa427ff447db5dc7dfe9d0de1e (patch) | |
| tree | 28f917365d37caeb60a84e5104d91d0a4c95be86 /addons/website_slides/controllers | |
| parent | 3716a9b2616bd4269590c3ec85a1c84b81143195 (diff) | |
[FIX] website_slides: fix error message display on upload
When uploading twice the same video for a channel, the error message displayed unhandled html.
We removed the html to avoid having to use $el.html() for better safety (and it should not happen often anyway).
Diffstat (limited to 'addons/website_slides/controllers')
| -rw-r--r-- | addons/website_slides/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/controllers/main.py b/addons/website_slides/controllers/main.py index 7d7eee4fb8e..85aeab3b224 100644 --- a/addons/website_slides/controllers/main.py +++ b/addons/website_slides/controllers/main.py @@ -764,7 +764,7 @@ class WebsiteSlides(WebsiteProfile): return preview existing_slide = Slide.search([('channel_id', '=', int(data['channel_id'])), ('document_id', '=', document_id)], limit=1) if existing_slide: - preview['error'] = _('This video already exists in this channel <a target="_blank" href="/slides/slide/%s">click here to view it </a>') % existing_slide.id + preview['error'] = _('This video already exists in this channel on the following slide: %s') % existing_slide.name return preview values = Slide._parse_document_url(data['url'], only_preview_fields=True) if values.get('error'): |
