mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #19928 from thomas-Ngr/develop_new_add_header_before_public_ticket_list
NEW : add hook before the public ticket list
This commit is contained in:
commit
e2734eca43
|
|
@ -77,6 +77,9 @@ if (isset($_SESSION['email_customer'])) {
|
|||
|
||||
$object = new Ticket($db);
|
||||
|
||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||
$hookmanager->initHooks(array('ticketpubliclist', 'globalcard'));
|
||||
|
||||
if (empty($conf->ticket->enabled)) {
|
||||
accessforbidden('', 0, 0, 1);
|
||||
}
|
||||
|
|
@ -407,6 +410,11 @@ if ($action == "view_ticketlist") {
|
|||
$varpage = empty($contextpage) ? $url_page_current : $contextpage;
|
||||
$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
|
||||
|
||||
// allow to display information before list
|
||||
$parameters=array('arrayfields'=>$arrayfields);
|
||||
$reshook=$hookmanager->executeHooks('printFieldListHeader', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
|
||||
print '<table class="liste '.($moreforfilter ? "listwithfilterbefore" : "").'">';
|
||||
|
||||
// Filter bar
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user