Skip to content

FIX : use get_exdir to compute holiday upload path in prepare_head#745

Merged
atm-quentin merged 1 commit into
20.0_hobofrom
FIX/168/T6366/backport-holiday-document-badge-count
Jun 9, 2026
Merged

FIX : use get_exdir to compute holiday upload path in prepare_head#745
atm-quentin merged 1 commit into
20.0_hobofrom
FIX/168/T6366/backport-holiday-document-badge-count

Conversation

@atm-corentin

Copy link
Copy Markdown

No description provided.

holiday module stores files using an ID-based 2-level hierarchy
(get_exdir with level=2), not a ref-based flat path.
Using dol_sanitizeFileName($object->ref) returns the wrong directory,
causing the attachment badge count to always read 0.

BACKPORT of Dolibarr#38641
@atm-quentin
atm-quentin merged commit de191ea into 20.0_hobo Jun 9, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants