Skip to content

Fix #36238 keep supplier filter when sorting product list#38915

Open
pixodeo wants to merge 1 commit into
Dolibarr:18.0from
Dolicraft:fix/36238-supplier-product-sort-keep-param
Open

Fix #36238 keep supplier filter when sorting product list#38915
pixodeo wants to merge 1 commit into
Dolibarr:18.0from
Dolicraft:fix/36238-supplier-product-sort-keep-param

Conversation

@pixodeo

@pixodeo pixodeo commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #36238.

print_liste_field_titre signature is (name, file, field, begin, moreparam, ...) but the seven calls in fourn/product/list.php passed $param at position 4 (begin) instead of 5 (moreparam). The URL builder then dropped the fourn_id filter on click so the list reset to all products. Move $param to the moreparam slot, matching the same fix already in 22.0+.

print_liste_field_titre signature is (name, file, field, begin, moreparam, ...)
but the seven calls in fourn/product/list.php passed $param at position 4
(begin) instead of 5 (moreparam), so the URL was rebuilt without the
fourn_id filter and the list reset when the user clicked a column header.
Swap to the correct slot, matching the fix already in the 22.0 line.

Signed-off-by: Dolicraft <contact@dolicraft.com>
@the-dolibear-bot the-dolibear-bot Bot added the Issue for v18 maintenance Team PR is in a maintenance branch with several approvers. Waiting approval of all of them. label Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue for v18 maintenance Team PR is in a maintenance branch with several approvers. Waiting approval of all of them.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant