mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
This commit is contained in:
commit
8c4ed9f14c
|
|
@ -2183,14 +2183,25 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
|
|||
$toprightmenu .= $form->textwithtooltip('', $langs->trans("ModuleBuilder"), 2, 1, $text, 'login_block_elem', 2);
|
||||
}
|
||||
|
||||
// Link to print main content area
|
||||
// Link to print main content area (optioncss=print)
|
||||
if (!getDolGlobalString('MAIN_PRINT_DISABLELINK') && !getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER')) {
|
||||
$qs = dol_escape_htmltag($_SERVER["QUERY_STRING"]);
|
||||
|
||||
if (isset($_POST) && is_array($_POST)) {
|
||||
foreach ($_POST as $key => $value) {
|
||||
if ($key !== 'action' && $key !== 'password' && !is_array($value)) {
|
||||
$qs .= '&'.$key.'='.urlencode($value);
|
||||
if (in_array($key, array('action', 'massaction', 'password'))) {
|
||||
continue;
|
||||
}
|
||||
if (!is_array($value)) {
|
||||
if ($value !== '') {
|
||||
$qs .= '&'.$key.'='.urlencode($value);
|
||||
}
|
||||
} else {
|
||||
foreach ($value as $value2) {
|
||||
if ($value2 !== '') {
|
||||
$qs .= '&'.$key.'[]='.urlencode($value2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -427,7 +427,7 @@ if (!empty($search_fk_warehouse)) {
|
|||
}
|
||||
}
|
||||
if ($productid > 0) {
|
||||
$param .= '&productid='.$productid;
|
||||
$param .= '&productid='.(int) $productid;
|
||||
}
|
||||
if (GETPOST('dateday', 'int') > 0) {
|
||||
$param .= '&dateday='.GETPOST('dateday', 'int');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user