[FIX] website_profile: prevent losing search params

Before this commit, the "rank by" parameter was deleted when a visitor
added a search criteria. This commit solves this problem.

Steps to reproduce the issue:
- Go to "/profile/users"
- Click on "Rank by" and select "This week"
- Search for a user (e.g. "admin")

=> The "rank by" parameter is lost and if you click on "This week"
again, the search (admin) will be lost.

task-3058239

closes odoo/odoo#114253

X-original-commit: eed9e3d8c1366f457d2f3170741c09ab2143d912
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Guillaume (gdi)
2023-03-03 15:56:49 +01:00
parent a67528b743
commit 2aaca97c75
@@ -25,6 +25,7 @@
<i class="fa fa-search border-1"></i>
</button>
<input type="text" class="form-control border-0 rounded-0 bg-transparent text-white ms-auto" name="search" placeholder="Search users"/>
<input type="hidden" name="group_by" t-att-value="group_by"/>
</div>
</form>
</div>