Skip to content

Commit

Permalink
ajout d'une condition pour le module ficheinter en fichinter dans li…
Browse files Browse the repository at this point in the history
…stesTypeContact pour charger les contactes par défauts
  • Loading branch information
ATM-nicolasV committed Aug 19, 2024
1 parent dd22c42 commit 7c0185c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/core/class/commonobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1498,13 +1498,15 @@ public function listeTypeContacts($source = 'internal', $option = 0, $activeonly
if (strpos($obj->element, 'project') !== false) {
$modulename = 'projet';
} elseif ($obj->element == 'contrat') {
$element = 'contract';
$modulename = 'contract';
} elseif ($obj->element == 'action') {
$modulename = 'agenda';
} elseif (strpos($obj->element, 'supplier') !== false && $obj->element != 'supplier_proposal') {
$modulename = 'fournisseur';
} elseif (strpos($obj->element, 'supplier') !== false && $obj->element != 'supplier_proposal') {
$modulename = 'fournisseur';
} elseif ($obj->element == 'fichinter') {
$modulename = 'ficheinter';
}
if (!empty($conf->{$modulename}->enabled)) {
$libelle_element = $langs->trans('ContactDefault_'.$obj->element);
Expand Down

0 comments on commit 7c0185c

Please sign in to comment.