diff options
| author | jem-odoo <jem@openerp.com> | 2018-09-12 13:53:52 +0000 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2018-09-16 12:32:24 +0000 |
| commit | 5937d13cf318bdd527def6cd93193a9a35393d4e (patch) | |
| tree | c948c5164519ad5b3ecbc8d3b4360ea9a0f6565f /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 4ae13e68bff2f71b534b531fc5a9c1f66c6eb198 (diff) | |
[FIX] portal: avoid strange domain when fetch messages
When fetching messages from the portal controller, we might
give a domain to restrict the message selection. Typically,
the ecommerce allows users to submit messages with rating
of the product. Users are allowed to filter the messages
with a certain rating.
Passing a non-normalized domain to this controller could
give strange result, as the code was using `+=` to concat
domains; some result domain could have been correct, but
return some strange results.
This commit normalizes all domains used in the code
making a non-normalized domain (given as parameter) crashes,
instead of returning unexpected messages.
Closes #26939
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
