Skip to content

Commit

Permalink
fix: update hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
AdrienClairembault authored and btry committed Oct 21, 2020
1 parent 5db55f6 commit 1ffb1ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ function plugin_init_formcreator() {
Ticket::class => 'plugin_formcreator_hook_add_ticket'
];
$PLUGIN_HOOKS['item_update']['formcreator'] = [
Ticket::class => 'plugin_formcreator_hook_update_ticket'
Ticket::class => 'plugin_formcreator_hook_update_ticket',
TicketValidation::class => 'plugin_formcreator_hook_update_ticketvalidation',
];
$PLUGIN_HOOKS['item_delete']['formcreator'] = [
Ticket::class => 'plugin_formcreator_hook_delete_ticket'
Expand All @@ -152,10 +153,8 @@ function plugin_init_formcreator() {
Ticket::class => 'plugin_formcreator_hook_restore_ticket'
];
$PLUGIN_HOOKS['item_purge']['formcreator'] = [
Ticket::class => 'plugin_formcreator_hook_purge_ticket'
];
$PLUGIN_HOOKS['item_update']['formcreator'] = [
TicketValidation::class => 'plugin_formcreator_hook_update_ticketvalidation'
Ticket::class => 'plugin_formcreator_hook_purge_ticket',
TicketValidation::class => 'plugin_formcreator_hook_purge_ticketvalidation',
];
$PLUGIN_HOOKS['pre_item_purge']['formcreator'] = [
PluginFormcreatorTargetTicket::class => 'plugin_formcreator_hook_pre_purge_targetTicket',
Expand Down

0 comments on commit 1ffb1ca

Please sign in to comment.