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

NEW Simplify the verification of context in hook #27105

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

d3v2a
Copy link
Contributor

@d3v2a d3v2a commented Dec 14, 2023

New

it add a method to simplify the verification of context.

usage:

if ($this->isContext($parameters, 'propalcard')) {
if ($this->isContext($parameters, ['propalcard', 'invoicecard', 'ticketcard'])) {

@eldy eldy merged commit 7021cb2 into Dolibarr:develop Jan 11, 2024
@d3v2a d3v2a deleted the hook_check_context branch January 11, 2024 11:13
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