Fix label for menu on dolidroid

This commit is contained in:
Laurent Destailleur 2022-10-06 17:36:52 +02:00
parent d436991c98
commit 7d27fbcc15
2 changed files with 17 additions and 4 deletions

View File

@ -205,10 +205,23 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
'perms'=> ($user->hasRight('projet', 'lire') ? 1 : 0),
'module'=>'projet'
);
if ($mode == 'jmobile') {
$titleboth = $langs->trans("LeadsOrProjects");
} else {
$titleboth = $langs->trans("Projects");
}
if (empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
$titleboth = $langs->trans("Projects");
}
if (isset($conf->global->PROJECT_USE_OPPORTUNITIES) && $conf->global->PROJECT_USE_OPPORTUNITIES == 2) { // 2 = leads only
$titleboth = $langs->trans("Leads");
}
$menu_arr[] = array(
'name' => 'Projet',
'name' => 'Project',
'link' => '/projet/index.php?mainmenu=project&leftmenu=',
'title' => (!empty($conf->global->PROJECT_USE_OPPORTUNITIES) && $conf->global->PROJECT_USE_OPPORTUNITIES == 2 ? "Leads" : "Projects"),
'title' => $titleboth,
'level' => 0,
'enabled' => $showmode = isVisibleToUserType($type_user, $tmpentry, $listofmodulesforexternal),
'target' => $atarget,
@ -397,7 +410,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
}
$menu_arr[] = array(
'name' => 'Ticket',
'link' => '/ticket/index.php?mainmenu=ticket&leftmenu=',
'link' => $link,
'title' => "Tickets",
'level' => 0,
'enabled' => $showmode = isVisibleToUserType($type_user, $tmpentry, $listofmodulesforexternal),

View File

@ -259,7 +259,7 @@ if ($resql) {
$companystatic->status = $obj->thirdpartystatus;
print '<table class="nobordernopadding"><tr class="nocellnopadd">';
print '<td width="96" class="nobordernopadding nowrap">';
print '<td width="96" class="nobordernopadding nowraponall">';
print $projectstatic->getNomUrl(1);
print '</td>';