From cb1c3a5bb134ffeb69127c4dbfbd85f931a568b7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 24 Jan 2024 14:36:35 +0100 Subject: [PATCH] Debug v19 --- htdocs/adherents/type.php | 2 +- htdocs/expensereport/payment/payment.php | 2 +- htdocs/main.inc.php | 2 +- htdocs/salaries/card.php | 2 +- htdocs/societe/consumption.php | 2 +- htdocs/website/index.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index 91f3fc328d4..29171982f4c 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -47,7 +47,7 @@ $cancel = GETPOST('cancel', 'alpha'); $toselect = GETPOST('toselect', 'array'); $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)).basename(__FILE__, '.php')); // To manage different context of search $backtopage = GETPOST('backtopage', 'alpha'); -$mode = GETPOST('mode', 'alopha'); +$mode = GETPOST('mode', 'alpha'); $sall = GETPOST("sall", "alpha"); $filter = GETPOST("filter", 'alpha'); diff --git a/htdocs/expensereport/payment/payment.php b/htdocs/expensereport/payment/payment.php index 007ee7372f4..aaaee81cd0a 100644 --- a/htdocs/expensereport/payment/payment.php +++ b/htdocs/expensereport/payment/payment.php @@ -111,7 +111,7 @@ if ($action == 'add_payment') { $payment->amounts = $amounts; // Tableau de montant $payment->total = $total; $payment->fk_typepayment = GETPOST("fk_typepayment", 'int'); - $payment->num_payment = GETPOST("num_payment", 'alphanothtml'); + $payment->num_payment = GETPOST("num_payment", 'alphanohtml'); $payment->note_public = GETPOST("note_public", 'restricthtml'); $payment->fk_bank = $accountid; diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 7a7f7cebe18..76484c12e18 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -3384,7 +3384,7 @@ function main_area($title = '') } // Permit to add user company information on each printed document by setting SHOW_SOCINFO_ON_PRINT - if (getDolGlobalString('SHOW_SOCINFO_ON_PRINT') && GETPOST('optioncss', 'aZ09') == 'print' && empty(GETPOST('disable_show_socinfo_on_print', 'az09'))) { + if (getDolGlobalString('SHOW_SOCINFO_ON_PRINT') && GETPOST('optioncss', 'aZ09') == 'print' && empty(GETPOST('disable_show_socinfo_on_print', 'aZ09'))) { $parameters = array(); $reshook = $hookmanager->executeHooks('showSocinfoOnPrint', $parameters); if (empty($reshook)) { diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php index 19092a8383d..df548b3d709 100644 --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -329,7 +329,7 @@ if ($action == 'add' && empty($cancel)) { if (GETPOST('saveandnew', 'alpha')) { setEventMessages($langs->trans("RecordSaved"), null, 'mesgs'); - header("Location: card.php?action=create&fk_project=" . urlencode($projectid) . "&accountid=" . urlencode($accountid) . '&paymenttype=' . urlencode(GETPOST('paymenttype', 'az09')) . '&datepday=' . GETPOST("datepday", 'int') . '&datepmonth=' . GETPOST("datepmonth", 'int') . '&datepyear=' . GETPOST("datepyear", 'int')); + header("Location: card.php?action=create&fk_project=" . urlencode($projectid) . "&accountid=" . urlencode($accountid) . '&paymenttype=' . urlencode(GETPOST('paymenttype', 'aZ09')) . '&datepday=' . GETPOST("datepday", 'int') . '&datepmonth=' . GETPOST("datepmonth", 'int') . '&datepyear=' . GETPOST("datepyear", 'int')); exit; } else { header("Location: " . $_SERVER['PHP_SELF'] . '?id=' . $object->id); diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php index 9aceb69b6b5..1bb701d6b9d 100644 --- a/htdocs/societe/consumption.php +++ b/htdocs/societe/consumption.php @@ -86,7 +86,7 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x' } // Customer or supplier selected in drop box -$thirdTypeSelect = GETPOST("third_select_id", 'az09'); +$thirdTypeSelect = GETPOST("third_select_id", 'aZ09'); $type_element = GETPOST('type_element') ? GETPOST('type_element') : ''; diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 700d2d0e995..c03088d5062 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -3660,7 +3660,7 @@ if ($action == 'editcss') { // Clean the php htmlheader file to remove php code and get only html part $robotcontent = preg_replace('/<\?php \/\/ BEGIN PHP[^\?]*END PHP \?>\n*/ims', '', $robotcontent); } else { - $robotcontent = GETPOST('WEBSITE_ROBOT', 'nothtml'); + $robotcontent = GETPOST('WEBSITE_ROBOT', 'nohtml'); } if (!trim($robotcontent)) { $robotcontent .= "# Robot file. Generated with ".DOL_APPLICATION_TITLE."\n";