Skip to content

FIX : backport multidir_output fallback for multi-entity HRM PDF gene…#744

Merged
atm-quentin merged 1 commit into
20.0_hobofrom
FIX/168/T6366/backport-hrm-pdf-evaluation-multidir-entity
Jun 9, 2026
Merged

FIX : backport multidir_output fallback for multi-entity HRM PDF gene…#744
atm-quentin merged 1 commit into
20.0_hobofrom
FIX/168/T6366/backport-hrm-pdf-evaluation-multidir-entity

Conversation

@atm-corentin

Copy link
Copy Markdown

No description provided.

…ration

Backport of Dolibarr#38640.

When generating a PDF for an Evaluation on an entity other than entity 1,
$conf->hrm->multidir_output[$entity] was resolved without a fallback to
$conf->hrm->dir_output. If multidir_output for the target entity is empty,
the resulting path was '/evaluation/<ref>' causing dol_mkdir() to fail.

Apply the same pattern used in other PDF modules (e.g. pdf_crabe for invoices):
fall back to dir_output when multidir_output[$entity] is not set.
@atm-quentin
atm-quentin merged commit 0511ab9 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