From fcd2aeb02678edb92192a848aec7a232033af891 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 15 Jul 2024 18:00:45 +0200 Subject: [PATCH] Debug v20 --- htdocs/admin/ihm.php | 2 +- htdocs/core/lib/ajax.lib.php | 2 +- htdocs/core/menus/standard/eldy.lib.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index fc160d8abf6..ff3fb379b83 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -443,7 +443,7 @@ if ($mode == 'other') { // Display checkboxes and fields menu left / right print '' . $langs->trans("MAIN_CHECKBOX_LEFT_COLUMN") . ''; - print ajax_constantonoff("MAIN_CHECKBOX_LEFT_COLUMN", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'other'); + print ajax_constantonoff("MAIN_CHECKBOX_LEFT_COLUMN", array(), $conf->entity, 0, 0, 1, 0, 0, 1, '', 'other'); print ''; print ''; diff --git a/htdocs/core/lib/ajax.lib.php b/htdocs/core/lib/ajax.lib.php index 6579e8cbbb5..ee900c700c0 100644 --- a/htdocs/core/lib/ajax.lib.php +++ b/htdocs/core/lib/ajax.lib.php @@ -632,7 +632,7 @@ function ajax_event($htmlname, $events) * @param int $forcereload Force to reload page if we click/change value (this is supported only when there is no 'alert' option in input) * @param int $marginleftonlyshort 1 = Add a short left margin on picto, 2 = Add a larger left margin on picto, 0 = No left margin. * @param int $forcenoajax 1 = Force to use a ahref link instead of ajax code. - * @param int $setzeroinsteadofdel 1 = Set constantto '0' instead of deleting it + * @param int $setzeroinsteadofdel 1 = Set constant to '0' instead of deleting it when $input is empty. * @param string $suffix Suffix to use on the name of the switch picto when option is on. Example: '', '_red' * @param string $mode Add parameter &mode= to the href link (Used for href link) * @param string $morecss More CSS diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php index 72b11c373c2..a56273baf0a 100644 --- a/htdocs/core/menus/standard/eldy.lib.php +++ b/htdocs/core/menus/standard/eldy.lib.php @@ -1256,7 +1256,7 @@ function get_left_menu_thridparties($mainmenu, &$newmenu, $usemenuhider = 1, $le } } - $newmenu->add("/societe/list.php?leftmenu=thirdparties_list", $langs->trans("List"), 1); + $newmenu->add("/societe/list.php?leftmenu=thirdparties", $langs->trans("List"), 1, $user->hasRight('societe', 'lire'), '', $mainmenu, 'thirdparties_list', 2); // Prospects if (isModEnabled('societe') && !getDolGlobalString('SOCIETE_DISABLE_PROSPECTS')) {