[FIX] website_rating: default value is not 'false' in composer
When website_rating is installed, all frontend chatter will have the string 'false' by default in the composer. This commit fixes that, restoring the placeholder closes odoo/odoo#31097
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
Inherited templates from portal to custom chatter with rating
|
||||
-->
|
||||
<t t-extend="portal.Composer">
|
||||
<t t-jquery="textarea" t-operation="inner"><t t-esc="_.str.trim(widget.options['default_message'])"/></t><!-- need to be one line to avoid \t in textarea -->
|
||||
<t t-jquery="textarea" t-operation="inner"><t t-esc="widget.options['default_message'] ? _.str.trim(widget.options['default_message']) : ''"/></t><!-- need to be one line to avoid \t in textarea -->
|
||||
<t t-jquery="form" t-operation="attributes">
|
||||
<attribute name="t-attf-action">#{widget.options['force_submit_url'] ? widget.options['force_submit_url'] : '/mail/chatter_post'}</attribute>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user