Fix name of agenda tab

This commit is contained in:
Laurent Destailleur 2016-10-02 21:31:32 +02:00
parent c0ea95df3e
commit 9fbe96dd38

View File

@ -205,12 +205,12 @@ function societe_prepare_head(Societe $object)
}
$head[$h][0] = DOL_URL_ROOT.'/societe/agenda.php?socid='.$object->id;
$head[$h][1].= $langs->trans("Events");
if (! empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read) ))
{
$head[$h][1] = $langs->trans("Events");
$head[$h][1].= '/';
$head[$h][1].= $langs->trans("Agenda");
}
$head[$h][1].= $langs->trans("Agenda");
$head[$h][2] = 'agenda';
$h++;