diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-07-17 08:45:06 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-07-17 08:45:06 +0000 |
| commit | a30cc3402d1ba2678bf2219a33972aff3ef65592 (patch) | |
| tree | 630325f6879c471d0eefc0f7e9bfa9a45c66afc1 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 31dd984bea58e9ffa0e80b6e5fca04804fdf4119 (diff) | |
[FIX] web_editor: restore background videos (new imagepicker UI)
Commit [1] broke the background videos feature. This is because the
'we-imagepicker' widget is now a sub-widget of a new 'we-button-group'
widget, acting as a selection choice (same as we-button in a we-select).
When selecting a selection choice, the appropriate option method is
called, with the selection value and params... but the params were
actually the ones of the 'we-button-group' element and not the ones
of the chosen widget 'we-imagepicker'.
This has never been important for we-select widgets but it could have
been. The problem is only solved here in master, generically for all
selection widgets (currently only 'we-select' and 'we-button-group').
The params received are the ones of the active sub-widget combined with
the ones of the selection widget.
[1]: https://github.com/odoo/odoo/commit/bb0cd4d5c82a9c2311f8c45ced0e9fdc0397d292
closes odoo/odoo#54629
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
