This commit is contained in:
Laurent Destailleur 2026-03-08 13:22:54 +01:00
parent 1969fcf195
commit dde1fa3837
2 changed files with 23 additions and 13 deletions

View file

@ -157,6 +157,12 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
$search_array_options = array();
}
if (getDolGlobalString("BLOCKEDLOG_FOR_TAX_AUDITOR")) {
// When this hidden option is on, open another tab as the tab by default
header("Location: ".DOL_URL_ROOT."/blockedlog/admin/blockedlog_archives.php");
exit;
}
/*
* View

View file

@ -58,19 +58,23 @@ function blockedlogadmin_prepare_head($withtabsetup)
$h = 0;
$head = array();
$head[$h][0] = DOL_URL_ROOT."/blockedlog/admin/registration.php".$param;
$head[$h][1] = $langs->trans("UserRegistration");
$head[$h][2] = 'registration';
$h++;
$b = new BlockedLog($db);
$head[$h][0] = DOL_URL_ROOT."/blockedlog/admin/blockedlog_list.php".$param;
$head[$h][1] = $langs->trans("BrowseBlockedLog");
if ($b->alreadyUsed()) {
$head[$h][1] .= (!getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER') ? '<span class="badge marginleftonlyshort">...</span>' : '');
if (!getDolGlobalString("BLOCKEDLOG_FOR_TAX_AUDITOR")) {
$head[$h][0] = DOL_URL_ROOT."/blockedlog/admin/registration.php".$param;
$head[$h][1] = $langs->trans("UserRegistration");
$head[$h][2] = 'registration';
$h++;
}
if (!getDolGlobalString("BLOCKEDLOG_FOR_TAX_AUDITOR")) {
$b = new BlockedLog($db);
$head[$h][0] = DOL_URL_ROOT."/blockedlog/admin/blockedlog_list.php".$param;
$head[$h][1] = $langs->trans("BrowseBlockedLog");
if ($b->alreadyUsed()) {
$head[$h][1] .= (!getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER') ? '<span class="badge marginleftonlyshort">...</span>' : '');
}
$head[$h][2] = 'fingerprints';
$h++;
}
$head[$h][2] = 'fingerprints';
$h++;
$head[$h][0] = DOL_URL_ROOT."/blockedlog/admin/blockedlog_archives.php".$param;
$head[$h][1] = $langs->trans("Archives");
@ -85,7 +89,7 @@ function blockedlogadmin_prepare_head($withtabsetup)
$h++;
}
if ($withtabsetup) {
if ($withtabsetup && !getDolGlobalString("BLOCKEDLOG_FOR_TAX_AUDITOR")) {
$head[$h][0] = DOL_URL_ROOT."/blockedlog/admin/blockedlog.php".$param;
$head[$h][1] = $langs->trans("TechnicalInformation");
$head[$h][2] = 'technicalinfo';