diff --git a/htdocs/contrat/agenda.php b/htdocs/contrat/agenda.php index 7137728f829..1c3cc066038 100644 --- a/htdocs/contrat/agenda.php +++ b/htdocs/contrat/agenda.php @@ -266,7 +266,7 @@ if ($object->id > 0) { $cachekey = 'count_events_thirdparty_'.$object->id; $nbEvent = dol_getcache($cachekey); - print load_fiche_titre($langs->trans("ActionsOnContract"), $newcardbutton, ''); + print load_fiche_titre($langs->trans("ActionsOnContract").(is_numeric($nbEvent) ? '('.$nbEvent.')': ''), $newcardbutton, ''); //print_barre_liste($langs->trans("ActionsOnCompany"), 0, $_SERVER["PHP_SELF"], '', $sortfield, $sortorder, '', 0, -1, '', 0, $newcardbutton, '', 0, 1, 1); // List of all actions