diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 6abd5e1b3e4..5682eda94a7 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -14644,6 +14644,20 @@ function getElementProperties($elementType) $classname = 'Fournisseur'; $table_element = 'societe'; $subelement = ''; + } elseif ($elementType == 'recruitmentcandidature') { + $module = 'recruitment'; + $classfile = 'recruitmentcandidature'; + $classpath = 'recruitment/class'; + $classname = 'RecruitmentCandidature'; + $subelement = 'recruitmentcandidature'; + $subdir = '/recruitmentcandidature'; + } elseif ($elementType == 'recruitmentjobposition') { + $module = 'recruitment'; + $classfile = 'recruitmentjobposition'; + $classpath = 'recruitment/class'; + $classname = 'RecruitmentJobPosition'; + $subelement = 'recruitmentjobposition'; + $subdir = '/recruitmentjobposition'; } diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 07655f8123b..3b1ee88105f 100644 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -229,7 +229,7 @@ if ($object->id > 0 && $upload_dir !== null) { $titre = $langs->trans("CardProduct".$object->type); $picto = ($object->type == Product::TYPE_SERVICE ? 'service' : 'product'); - print dol_get_fiche_head($head, 'documents', $titre, -1, $picto); + print dol_get_fiche_head($head, 'documents', $titre, -1, $picto, 0, '', '', 0, '', 1); $parameters = array(); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook diff --git a/htdocs/recruitment/recruitmentcandidature_card.php b/htdocs/recruitment/recruitmentcandidature_card.php index c98c546e1cd..3b0a50771db 100644 --- a/htdocs/recruitment/recruitmentcandidature_card.php +++ b/htdocs/recruitment/recruitmentcandidature_card.php @@ -310,7 +310,7 @@ if ($action == 'create') { print ''; } - print dol_get_fiche_head(array(), ''); + print dol_get_fiche_head([], ''); print ''."\n"; @@ -370,7 +370,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $res = $object->fetch_optionals(); $head = recruitmentCandidaturePrepareHead($object); - print dol_get_fiche_head($head, 'card', $langs->trans("RecruitmentCandidature"), -1, $object->picto); + print dol_get_fiche_head($head, 'card', $langs->trans("RecruitmentCandidature"), -1, $object->picto, 0, '', '', 0, '', 1); $formconfirm = ''; diff --git a/htdocs/recruitment/recruitmentcandidature_document.php b/htdocs/recruitment/recruitmentcandidature_document.php index 6cca73b990f..214e860fd9f 100644 --- a/htdocs/recruitment/recruitmentcandidature_document.php +++ b/htdocs/recruitment/recruitmentcandidature_document.php @@ -118,7 +118,7 @@ if ($object->id && $upload_dir !== null) { */ $head = recruitmentCandidaturePrepareHead($object); - print dol_get_fiche_head($head, 'document', $langs->trans("RecruitmentCandidature"), -1, $object->picto); + print dol_get_fiche_head($head, 'document', $langs->trans("RecruitmentCandidature"), -1, $object->picto, 0, '', '', 0, '', 1); // Build file list diff --git a/htdocs/user/document.php b/htdocs/user/document.php index 71fed54897c..57e177c9ee8 100644 --- a/htdocs/user/document.php +++ b/htdocs/user/document.php @@ -157,7 +157,7 @@ if ($object->id && $upload_dir !== null) { } $head = user_prepare_head($object); - print dol_get_fiche_head($head, 'document', $langs->trans("User"), -1, 'user'); + print dol_get_fiche_head($head, 'document', $langs->trans("User"), -1, 'user', 0, '', '', 0, '', 1); $linkback = ''; if ($user->hasRight("user", "user", "read") || $user->admin) {