Skip to content

Commit

Permalink
Evarisk#3977 [PublicTicket] fix: change hook name because already used
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Jun 12, 2024
1 parent d742572 commit a64cb0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion class/actions_digiriskdolibarr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public function printCommonFooter($parameters)
}
}
}
} else if (strpos($parameters['context'], 'publicnewticketcard') !== false) {
} else if (strpos($parameters['context'], 'ticketpubliccard') !== false) {
if (!$conf->multicompany->enabled) {
$entity = $conf->entity;
} else {
Expand Down
2 changes: 1 addition & 1 deletion public/ticket/create_ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}

// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('publicnewticketcard', 'globalcard'));
$hookmanager->initHooks(['ticketpubliccard', 'globalcard']);

$object = new Ticket($db);
$formfile = new FormFile($db);
Expand Down

0 comments on commit a64cb0f

Please sign in to comment.