Skip to content
Snippets Groups Projects
Commit 0374ecae authored by Antoine Guenet's avatar Antoine Guenet
Browse files

[FIX] web_editor: properly set media dialog `onlyImages` and find video


Media dialog was trying to reach the current media's parent node, which
was not possible as it was cloned on instantiation.
To fix this, the `showImageDialog` now passes the `onlyImages` option
upon instantiation, checking the parent's data. It also passes the
media's parent if said parent is a video. This way, neither of these two
things need to be done in media dialog.

closes odoo/odoo#31634

Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
parent f1c05305
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment