summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml/editor.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-06-20 16:59:48 +0200
committerqsm-odoo <qsm@odoo.com>2018-06-21 12:58:33 +0200
commitcd812bd6f46988959535288d657353d273fb6d61 (patch)
treeedd9294b70d08c5342d2dc3774a2a7b85609b4a1 /addons/web_editor/static/src/xml/editor.xml
parenta9366de8f90ea4106d306c585043a42f089c86d4 (diff)
[FIX] web_editor: fix saving and restoring of crop aspect ratio
When an image was cropped and saved with a specific aspect ratio, it was not restored properly on further crop editions.
Diffstat (limited to 'addons/web_editor/static/src/xml/editor.xml')
-rw-r--r--addons/web_editor/static/src/xml/editor.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml
index 9821ceb38bd..7240397ff56 100644
--- a/addons/web_editor/static/src/xml/editor.xml
+++ b/addons/web_editor/static/src/xml/editor.xml
@@ -318,7 +318,7 @@
<div class="btn-group" title="Aspect Ratio" data-toggle="buttons">
<t t-foreach="widget.aspectRatioList" t-as="ratio">
<t t-set="is_active" t-value="ratio[1] === widget.imageData.aspectRatio"/>
- <a href="#" t-attf-class="btn btn-default#{is_active and ' active' or ''}" data-event="ratio" t-att-data-value="ratio[1]">
+ <a href="#" t-attf-class="btn btn-default#{is_active and ' active' or ''}" data-event="ratio" t-att-data-label="ratio[1]" t-att-data-value="ratio[2]">
<t t-esc="ratio[0]"/>
</a>
</t>