Skip to content
Snippets Groups Projects
Commit 556ff721 authored by Huy Le's avatar Huy Le
Browse files

[FIX] website_forum: fix wrong attribute

After commit [1], attribute `t-value` was replaced to `value` by mistake

Steps to reproduce:
- Go to a forum post
- Click on the author image, logged in as admin
- On the profile page, unpublish the user
- As public visitor go to the previous forum post
- See the avatar image url -> `href` is now `href="#"` with this PR.

[1]: https://github.com/odoo/odoo/commit/c8c8eb3d5652e9834d0ecd5aad907ee359edb657#diff-2a4205ad15bf7b1ef0d1361b1baec87ef8a6429de19f9e0e8afce4ca16be839d



closes odoo/odoo#100484

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent fe072265
No related branches found
No related tags found
No related merge requests found
......@@ -1426,7 +1426,7 @@
<div t-attf-class="o_wforum_author_box d-inline-flex #{display_info and 'o_show_info'} #{compact and 'o_compact align-items-center'} #{bio_popover_data and 'o_wforum_bio_popover'}"
t-att-data-content="bio_popover_data">
<t t-set="user_profile_url" value="#"/>
<t t-set="user_profile_url" t-valuef="#"/>
<t t-if="object.create_uid.id == request.session.uid or object.create_uid.sudo().website_published">
<t t-set="user_profile_url" t-value="'/forum/%s/user/%s' % (slug(forum), object.create_uid.id) + '?forum_origin=' + request.httprequest.path"/>
</t>
......
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