diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index 30b33e70db8..2b71b92d330 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -1,7 +1,7 @@ - * Copyright (C) 2004-2011 Laurent Destailleur - * Copyright (C) 2005-2010 Regis Houssin +/* Copyright (C) 2001-2005 Rodolphe Quiedeville + * Copyright (C) 2004-2011 Laurent Destailleur + * Copyright (C) 2005-2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -76,6 +76,7 @@ if ($action == 'update') // This one is not always defined if (isset($_POST["MAIN_USE_PREVIEW_TABS"])) dolibarr_set_const($db, "MAIN_USE_PREVIEW_TABS", $_POST["MAIN_USE_PREVIEW_TABS"],'chaine',0,'',$conf->entity); + if (isset($_POST["MAIN_BUGTRACK_ENABLELINK"])) dolibarr_set_const($db, "MAIN_BUGTRACK_ENABLELINK", $_POST["MAIN_BUGTRACK_ENABLELINK"],'chaine',0,'',$conf->entity); $_SESSION["mainmenu"]=""; // Le gestionnaire de menu a pu changer @@ -235,6 +236,17 @@ if ($action == 'edit') // Edit print ' '; print ''; + if ($conf->global->MAIN_FEATURES_LEVEL > 1) + { + // Show bugtrack link + $var=!$var; + print ''.$langs->trans("ShowBugTrackLink").''; + print $form->selectyesno('MAIN_BUGTRACK_ENABLELINK',$conf->global->MAIN_BUGTRACK_ENABLELINK,1); + print ''; + print ' '; + print ''; + } + // Message on login page $var=!$var; print ''.$langs->trans("MessageLogin").''; @@ -378,6 +390,16 @@ else // Show print yn((isset($conf->global->MAIN_HELP_DISABLELINK)?$conf->global->MAIN_HELP_DISABLELINK:0),1); print ''; + if ($conf->global->MAIN_FEATURES_LEVEL > 1) + { + // Show bugtrack link + $var=!$var; + print ''.$langs->trans("ShowBugTrackLink").''; + print yn($conf->global->MAIN_BUGTRACK_ENABLELINK).""; + print ' '; + print ""; + } + // Message login $var=!$var; print ''.$langs->trans("MessageLogin").''; diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 9b95f6ab149..4fa01b4f116 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1512,7 +1512,7 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me } // Link to bugtrack - if (! empty($conf->global->MAIN_SHOW_BUGTRACK_LINK)) + if (! empty($conf->global->MAIN_BUGTRACK_ENABLELINK)) { require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';