Closed xacobofg closed 2 years ago
Those hooks are only implemented for the tabs on forms. What is the expected behavior for these hooks when used with the timeline items? The "pre_item_form" and "post_item_form" hooks are implemented for the timeline items.
The hooks for the tabs should be "pre_show_tab" and "post_show_tab". An example of use for these hooks can be found in the Actualtime plugin. I use the hook "post_show_item" to show the plugin time in the task without having to open it. I don't know if there is now another way to add extra information in the tasks or followups.
The same problem for me with 'pre_show_item' and 'pre_item_form' / 'post_item_form' are missing in 'simple_form.Html.Twig', so we can't use either of them in a plugin that uses simple_form as main_description ticket editing form for example.
@xacobofg @Aeto-J
Can you validate that #12265 is OK for your needs ?
Hello @cedric-anne. Sorry for taking so long to reply. I tested the change and it works correctly
Code of Conduct
Is there an existing issue for this?
Version
10.0.1
Bug description
When a plugin wants to use the 'pre_show_item' and 'post_show_item' hooks they are not activated by the TicketTask, ITILFollowup and ITILSolution elements. This fails on changes, problems and tickets.
Relevant log output
No response
Page URL
No response
Steps To reproduce
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response