Skip to content

Commit

Permalink
NEW Add option to access directly in project list when you click in m…
Browse files Browse the repository at this point in the history
…enu (PROJECT_FORCE_LIST_ACCESS)
  • Loading branch information
aspangaro committed Sep 13, 2023
1 parent 93ba927 commit c16a88c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions htdocs/custom/oblyon/core/menus/standard/oblyon.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,12 @@ function print_oblyon_menu($db, $atarget, $type_user = 0, &$tabMenu, &$menu, $no
$idsel='project';

if (empty($noout)) print_start_menu_entry($idsel,$itemsel,$showmode);
if (empty($noout)) print_text_menu_entry($langs->trans("MenuProjectsOpportunities"), $showmode, DOL_URL_ROOT.'/projet/index.php?mainmenu=project&leftmenu=', $id, $idsel, $atarget);
if (empty($noout)) print_end_menu_entry($showmode);
if (!empty($conf->global->PROJECT_FORCE_LIST_ACCESS)) {
if (empty($noout)) print_text_menu_entry($langs->trans("MenuProjectsOpportunities"), $showmode, DOL_URL_ROOT . '/projet/list.php?mainmenu=project&leftmenu=', $id, $idsel, $atarget);
} else {
if (empty($noout)) print_text_menu_entry($langs->trans("MenuProjectsOpportunities"), $showmode, DOL_URL_ROOT . '/projet/index.php?mainmenu=project&leftmenu=', $id, $idsel, $atarget);
}
if (empty($noout)) print_end_menu_entry($showmode);
$title = $langs->trans("LeadsOrProjects"); // Leads and opportunities by default
$showmodel = $showmodep = $showmode;
if (empty($conf->global->PROJECT_USE_OPPORTUNITIES))
Expand Down

0 comments on commit c16a88c

Please sign in to comment.