Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hook result usage #32294

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

thersane-john
Copy link
Contributor

Fix

The result of the hook pdf_getLinkedObjects is being misused. If your hook returns 1, but the resArray is cleared (as this is precisely what your use case requires), the hook ends up being ignored.

htdocs/core/lib/pdf.lib.php Outdated Show resolved Hide resolved
@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Dec 9, 2024
@eldy eldy merged commit 936dac8 into Dolibarr:20.0 Dec 9, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants