Fix missing hook init

This commit is contained in:
Laurent Destailleur
2018-03-02 17:32:54 +01:00
parent dfdb5b27b0
commit 63eecb46a9
4 changed files with 25 additions and 1 deletions

View File

@@ -77,10 +77,14 @@ if ($object->id > 0)
$upload_dir = $conf->contrat->dir_output.'/'.dol_sanitizeFileName($object->ref);
$modulepart='contract';
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('contractcard','globalcard'));
/*
* Actions
*/
include_once DOL_DOCUMENT_ROOT . '/core/actions_linkedfiles.inc.php';