summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2016-09-21 15:27:14 +0200
committerRichard Mathot <rim@odoo.com>2016-09-22 16:01:03 +0200
commit419f4ac5db1ffaa4d5dabd40dbaf2b5eff0af5a9 (patch)
tree99a53a68e93c379113612acf4ee75554dcb84d62 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parent343170a695419910c4c1ec25eb06f4bc8ced869f (diff)
[FIX] tools: prevent html_translate crash with malformed HTML
If an user stores malformed HTML code in a *translatable HTML field*, the ORM won't prevent it (this could be a fix for master as it breaks existing behaviours) and it could be rendered anyway by browsers. When reading/prefetching the record, the translation function was crashing because malformed HTML is obviously malformed XML (the translation function uses XML internals). This fix will return the source value as a fallback if the HTML field is malformed (and thus not translatable) + log the error.
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions