This commit is contained in:
Laurent Destailleur 2025-04-24 19:19:02 +02:00
parent cbbda62f7a
commit acc7dcdf65
2 changed files with 3 additions and 1 deletions

View file

@ -2559,7 +2559,7 @@ function get_left_menu_tools($mainmenu, &$newmenu, $usemenuhider = 1, $leftmenu
}
if (isModEnabled('import') || isModEnabled('export')) {
$langs->load("exports");
$newmenu->add("/imports/index.php?leftmenu=import", $langs->trans($title), 0, $user->hasRight('import', 'run') || $user->hasRight('export', 'lire'), '', $mainmenu, 'import', 0, '', '', '', img_picto('', 'technic', 'class="paddingright pictofixedwidth"'));
$newmenu->add("/imports/index.php?leftmenu=import", $langs->trans($title), 0, (int) ($user->hasRight('import', 'run') || $user->hasRight('export', 'lire')), '', $mainmenu, 'import', 0, '', '', '', img_picto('', 'technic', 'class="paddingright pictofixedwidth"'));
$newmenu->add("/imports/import.php?leftmenu=import", $langs->trans("NewImport"), 1, $user->hasRight('import', 'run'));
$newmenu->add("/exports/export.php?leftmenu=export", $langs->trans("NewExport"), 1, $user->hasRight('export', 'lire'));
}

View file

@ -50,6 +50,8 @@ $toselect = GETPOST('toselect', 'array'); // Array of ids of elements selected
$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'opensurveylist'; // To manage different context of search
$backtopage = GETPOST('backtopage', 'alpha'); // Go back to a dedicated page
$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
$mode = GETPOST('mode', 'aZ');
$search_all = trim(GETPOST('search_all', 'alphanohtml'));
$id = GETPOST('id', 'alpha');