Skip to content

Commit

Permalink
FIX : Replace feature level 2 by a constant on accountancy journal
Browse files Browse the repository at this point in the history
  • Loading branch information
aspangaro committed May 24, 2018
1 parent 23e2bb2 commit 46a251a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/menus/standard/auguria.lib.php
Expand Up @@ -384,7 +384,7 @@ function print_left_auguria_menu($db,$menu_array_before,$menu_array_after,&$tabM
if ($objp->nature == 9) $nature="hasnew";

// To enable when page exists
if ($conf->global->MAIN_FEATURES_LEVEL < 2)
if (! empty($conf->global->ACCOUNTANCY_SHOW_DEVELOP_JOURNAL))
{
if ($nature == 'various' || $nature == 'hasnew' || $nature == 'inventory') $nature='';
}
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/menus/standard/eldy.lib.php
Expand Up @@ -1062,14 +1062,14 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu
if ($objp->nature == 9) $nature="hasnew";

// To enable when page exists
if ($conf->global->MAIN_FEATURES_LEVEL < 2)
if (! empty($conf->global->ACCOUNTANCY_SHOW_DEVELOP_JOURNAL))
{
if ($nature == 'various' || $nature == 'hasnew' || $nature == 'inventory') $nature='';
}

if ($nature)
{
$langs->load('accountancy');
$langs->load('accountancy');
$newmenu->add('/accountancy/journal/'.$nature.'journal.php?mainmenu=accountancy&leftmenu=accountancy_journal&id_journal='.$objp->rowid, $langs->trans($objp->label), 2, $user->rights->accounting->comptarapport->lire);
}
$i++;
Expand Down

0 comments on commit 46a251a

Please sign in to comment.