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

TicketValidation pre_item_form hook #18571

Open
wants to merge 2 commits into
base: 10.0/bugfixes
Choose a base branch
from

Conversation

keboeoris
Copy link
Contributor

@keboeoris keboeoris commented Dec 18, 2024

Checklist before requesting a review

Please delete options that are not relevant.

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.
  • This change requires a documentation update.

Description

If we want to use the pre_item_form hook for a validation request, GLPI does not pass the subitem to the Twig template during the timeline rendering.
If the subitem is not passed, the item is empty in the hook, making it impossible to use the data.

Solution: Add the subitem to the include of the item type template.

Screenshots (if appropriate):

image


@keboeoris keboeoris reopened this Dec 18, 2024
@keboeoris keboeoris requested a review from btry January 9, 2025 08:29
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