diff options
| author | Toufik Benjaa <tbe@odoo.com> | 2018-05-15 15:43:07 +0200 |
|---|---|---|
| committer | Toufik Benjaa <tbe@odoo.com> | 2018-05-15 16:48:54 +0200 |
| commit | 84f0b4d9345a6c891e7cea63a55716f325b22e1e (patch) | |
| tree | b1d0ad41c1071a9f86214022dcc946943ca5ff75 /doc/reference/javascript_reference.rst | |
| parent | 96e54550797a56d5ac33338ee5a9401e7cf299b3 (diff) | |
[FIX] mail: Avoid crashing when removing link from chatter
- The code to remove mentionned users on the chatter isn't robust enough.
It crashes when trying to remove a link added from a copy/paste as if it was a mention.
Mentions have an id defined on their "a" html node, linked copied and pasted don't.
Which crashes the javascript code because it is trying to use the id.
This fix, make sure to delete the node without using its id (we already have the node) and make sure to remove it only if it starts with a '@' (meaning it is a mention).
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
