Skip to content
Snippets Groups Projects
Commit 2e3f7856 authored by Romain Derie's avatar Romain Derie
Browse files

[FIX] website_forum: add missing ID which lead to broken JS


That ID was removed with c8c8eb3d, but the JS code is expecting to find
this ID inside the DOM to increment the flag counter.

Courtesy of @dwa-odoo
Spotted while working on task-2167561

closes odoo/odoo#74796

Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent 50f1bf1b
Branches
Tags
No related merge requests found
......@@ -561,7 +561,7 @@
</span>
<a t-else="" class="nav-link rounded-pill text-reset" t-attf-href="/forum/#{slug(forum)}/flagged_queue">
<i class="fa fa-flag fa-fw"/> Flagged
<span t-attf-class="badge pull-right #{forum.count_flagged_posts > 0 and 'badge-danger' or 'badge-light'}" t-esc="forum.count_flagged_posts"/>
<span id="count_flagged_posts" t-attf-class="badge pull-right #{forum.count_flagged_posts > 0 and 'badge-danger' or 'badge-light'}" t-esc="forum.count_flagged_posts"/>
</a>
</t>
</nav>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment