From 52ab3dbba46d0aa9e2a79dc3cb2c32148e0f3e1c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Feb 2024 12:20:57 +0100 Subject: [PATCH 1/8] Release 17.0.4 --- ChangeLog | 57 +++++++++++++++++++++++++++++++++++++++++ htdocs/filefunc.inc.php | 2 +- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c095075aac4..0078f39257c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,63 @@ English Dolibarr ChangeLog -------------------------------------------------------------- +***** ChangeLog for 17.0.4 compared to 17.0.3 ***** +FIX: $this->newref already exists and could have been modified by trigger but we still use a local variable for the filesystem-based renaming +FIX: 16.0 only, backport fix for SQL error on global search product +FIX: 17.0: deprecated field should only be a fallback +FIX: 17.0 PHP8: supplier invoice class +FIX: 17.0 PHP8: supplier invoice class: +FIX: 17.0 - php8 warnings: test for $field existence before checking if it is null or empty +FIX: 17.0 - php8 warnings: test for $field existence before checking is_null +FIX#25399 (#26694) +FIX: #25458 intervention localizations (backport v17) (#26757) +FIX: #25580 install/step1.php - wrong command line argument used for $main_dir (#25581) +FIX: #25919 +FIX: #25934 #25929 +FIX: #26100 - Ticket - On edit, list of closed project must be excluded (#26223) +FIX: #26195 - Various payment - List of project excluded those assigned to third parties (#26222) +FIX: #26735 FIX: #26994 +FIX: #27262 Recurrent invoice - user to string conversion +FIX: Accountancy - Possibility to write in bookkeeping expense report operation with some line not bound (#26545) +FIX: Accountancy - Update Quadra export format +FIX: add action update_extras to don card +FIX_add_customer_ref_on_linked_shipment (#26349) +FIX: add display of an error when attempting to delete a committed transaction (#26573) +FIX: Adding the $encode parrameter +FIX: Adding the $encode parrameter to recursive _replaceHtmlWithOdtTag() utilisation +FIX: add warning in the changelog +FIX: avoid php8 warnings +FIX: avoid php8 warnings (#25596) +FIX: avoid warning : Cannot use a scalar value as an array (#26437) +FIX: Backport memory fix for fatal error when +100000 products +FIX: backport SQL error on global search product +FIX: bad accountancy code autoselection for supplier ventilation +FIX: Bad calculation of localtax when price_base_type not defined. +FIX: bad check return for sendfile +FIX: bad from and to +FIX: Bad value of accounting account shown in list. Edit fails. +FIX: Barcode header cell not well displayed +FIX: BarCode Header not well displayed +FIX: Bar code verification should be done by entity because generation does (#28087) +FIX: # Bug Estimated Stock at date value in V14 (#26479) +FIX: Can't access to rec supplier invoice card +FIX: Can't delete a fourn commande row if a commande ligne is linked +FIX: check tva_tx before comparing price_min_ttc (#25220) +FIX: commande context (#26497) +FIX: - compare the result of the send mail file function +FIX: could not delete a fourn commande row if a commande ligne is linked +FIX: count cronjob list differs of lines shown nb +FIX: crabe PDF is generating in conf->entity instead of object->entity +FIX: creation of invoice from contract with discount lines +FIX: CVE-2024-23817 (#28089) +FIX: dir output path for ODT models on reception card +FIX: disable pointer events on jQuery-UI tooltips to prevent a glitch +FIX: disable pointer events on jQuery-UI tooltips to prevent a glitch (fast-blinking tooltip) +FIX: Error handling for computed values on import (#24897) +FIX: escape HTML tags in return value of getFullName() (#26735) +FIX: export FEC +FIX: Fatal error converting object of class User to string (php8) + ***** ChangeLog for 17.0.3 compared to 17.0.2 ***** FIX: #20304 propaldates update FIX: #24508 Label not reported when creating a supplier invoice template (#25340) diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 5045faa3619..b55e00132dd 100644 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -34,7 +34,7 @@ if (!defined('DOL_APPLICATION_TITLE')) { define('DOL_APPLICATION_TITLE', 'Dolibarr'); } if (!defined('DOL_VERSION')) { - define('DOL_VERSION', '17.0.3'); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c + define('DOL_VERSION', '17.0.4'); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c } if (!defined('EURO')) { From 36d9022c7d8ea9f2b69d04607e865b74ef43331b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Feb 2024 12:31:55 +0100 Subject: [PATCH 2/8] Changelog --- ChangeLog | 72 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 63 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0078f39257c..be7d83c197f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,11 +7,9 @@ English Dolibarr ChangeLog FIX: $this->newref already exists and could have been modified by trigger but we still use a local variable for the filesystem-based renaming FIX: 16.0 only, backport fix for SQL error on global search product FIX: 17.0: deprecated field should only be a fallback -FIX: 17.0 PHP8: supplier invoice class FIX: 17.0 PHP8: supplier invoice class: -FIX: 17.0 - php8 warnings: test for $field existence before checking if it is null or empty FIX: 17.0 - php8 warnings: test for $field existence before checking is_null -FIX#25399 (#26694) +FIX: #25399 (#26694) FIX: #25458 intervention localizations (backport v17) (#26757) FIX: #25580 install/step1.php - wrong command line argument used for $main_dir (#25581) FIX: #25919 @@ -23,12 +21,10 @@ FIX: #27262 Recurrent invoice - user to string conversion FIX: Accountancy - Possibility to write in bookkeeping expense report operation with some line not bound (#26545) FIX: Accountancy - Update Quadra export format FIX: add action update_extras to don card -FIX_add_customer_ref_on_linked_shipment (#26349) +FIX: add_customer_ref_on_linked_shipment (#26349) FIX: add display of an error when attempting to delete a committed transaction (#26573) -FIX: Adding the $encode parrameter FIX: Adding the $encode parrameter to recursive _replaceHtmlWithOdtTag() utilisation FIX: add warning in the changelog -FIX: avoid php8 warnings FIX: avoid php8 warnings (#25596) FIX: avoid warning : Cannot use a scalar value as an array (#26437) FIX: Backport memory fix for fatal error when +100000 products @@ -39,26 +35,84 @@ FIX: bad check return for sendfile FIX: bad from and to FIX: Bad value of accounting account shown in list. Edit fails. FIX: Barcode header cell not well displayed -FIX: BarCode Header not well displayed FIX: Bar code verification should be done by entity because generation does (#28087) FIX: # Bug Estimated Stock at date value in V14 (#26479) FIX: Can't access to rec supplier invoice card FIX: Can't delete a fourn commande row if a commande ligne is linked FIX: check tva_tx before comparing price_min_ttc (#25220) FIX: commande context (#26497) -FIX: - compare the result of the send mail file function +FIX: compare the result of the send mail file function FIX: could not delete a fourn commande row if a commande ligne is linked FIX: count cronjob list differs of lines shown nb FIX: crabe PDF is generating in conf->entity instead of object->entity FIX: creation of invoice from contract with discount lines FIX: CVE-2024-23817 (#28089) FIX: dir output path for ODT models on reception card -FIX: disable pointer events on jQuery-UI tooltips to prevent a glitch FIX: disable pointer events on jQuery-UI tooltips to prevent a glitch (fast-blinking tooltip) FIX: Error handling for computed values on import (#24897) FIX: escape HTML tags in return value of getFullName() (#26735) FIX: export FEC FIX: Fatal error converting object of class User to string (php8) +FIX: fatal error with bad definition of dictionaries +FIX: filter by entity on contact is missing +FIX: Fix supplier invoice security check +FIX: HTML in ODT templates (#26181) +FIX: include +FIX: label +FIX: line special_code never saved (#28051) +FIX: link to create purchase order from sale order +FIX: menu auguria +FIX: message order in ticket public view is not coherent with tickets events tab +FIX: Missing begin transaction when updating supplier recurring invoice +FIX: missing contact_id for the trigger +FIX: Missing error message on CommandeFourn creation +FIX: missing fk_account situation invoice +FIX: missing project entity filter (Issue #26243) (#26247) +FIX: modification of complementary attributes in commercial proposals +FIX: modification of complementary attributes in invoices (#26180) +FIX: more correctly parse the select part to be replaced in sql queries +FIX: not create/update extrafields for visibility 0,2 and 5 +FIX: notification information on intervention validated confirmation message (v17+) +FIX: payment card: misleading message when delete button disabled +FIX: payment : language is not propagated to following pages +FIX: pdf cornas page head multicell width (backport v17) +FIX: possible inconsistency between llx_ecm_files and file system when BILL_SUPPLIER_VALIDATES changes ref +FIX: Prices visible on TakePOS KO with multiprices support +FIX: product list accounting length +FIX: propal list : warning if product module is not enabled (#25583) +FIX: Propal's negative quantities +FIX: Quick search Intervention redirect to wrong page +FIX: reception odt dir output path +FIX: regression on rounding stocks fields on product list +FIX_reload_linked_objects_on_propal_closeas +FIX: Return right content type +FIX: right access on salary card and tabs +FIX: rights paymentsc paiementcharge +FIX: same broken feature as v18 (Multicompany) +FIX: Save user modif id when changing a contact status +FIX: search by ref & rowid in don list +FIX: search by thirdparty in don list +FIX: special_code update line keep old value. (#26819) +FIX: SQL concatenation error +FIX: SQL request parenthesis +FIX: substitute project variables in invoice documents (#26445) +FIX: Suppliers addlines never have VAT if buyprice for this supplier +FIX: [TAKEPOS] display prices with or without taxes depending on setup (TAKEPOS_CHANGE_PRICE_HT) +FIX: TakePOS receipt preview in admin #25648 +FIX: template invoice list extrafield filters (backport v17) (#26227) +FIX: thirdparty object in proposal card is not loaded +FIX: too long output +FIX: translation button +FIX: use event.key instead event.wich to avoid keyboard difference +FIX: Use of line->insert instead of line->create +FIX: user creation when LDAP is configured (#26332) +FIX: Use the wrong logo size on PDF +FIX: v17: Param $notrigger in $societe->create() causes method to return true regardless of actual result of database functions (#26499) +FIX: warning param $lineID getSpecialCode is negatif (#26826) +FIX: warning php8.2 undefined_array_key (#26830) +FIX: warning when Workboard Responses display non numeric strings +FIX: Wrong backtopage given for the stocktransfer button from the stocktransfer list (#26271) +FIX: wrong place of trigger delete ***** ChangeLog for 17.0.3 compared to 17.0.2 ***** FIX: #20304 propaldates update From 7e652b9f9f0635f7b4d06e8d958bda10fca6eedb Mon Sep 17 00:00:00 2001 From: boudet jean pascal <68547382+atm-jpb@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:51:09 +0100 Subject: [PATCH 3/8] fix token to link (#28141) * fix token to link * pre-commit --------- Co-authored-by: jpb --- ChangeLog | 4 ++-- .../product/stock/stocktransfer/stocktransfer_card.php | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index be7d83c197f..662cddbba6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,7 +23,7 @@ FIX: Accountancy - Update Quadra export format FIX: add action update_extras to don card FIX: add_customer_ref_on_linked_shipment (#26349) FIX: add display of an error when attempting to delete a committed transaction (#26573) -FIX: Adding the $encode parrameter to recursive _replaceHtmlWithOdtTag() utilisation +FIX: Adding the $encode parameter to recursive _replaceHtmlWithOdtTag() utilisation FIX: add warning in the changelog FIX: avoid php8 warnings (#25596) FIX: avoid warning : Cannot use a scalar value as an array (#26437) @@ -103,7 +103,7 @@ FIX: template invoice list extrafield filters (backport v17) (#26227) FIX: thirdparty object in proposal card is not loaded FIX: too long output FIX: translation button -FIX: use event.key instead event.wich to avoid keyboard difference +FIX: use event.key instead event.which to avoid keyboard difference FIX: Use of line->insert instead of line->create FIX: user creation when LDAP is configured (#26332) FIX: Use the wrong logo size on PDF diff --git a/htdocs/product/stock/stocktransfer/stocktransfer_card.php b/htdocs/product/stock/stocktransfer/stocktransfer_card.php index 54384ae0b3f..423c00ca7ea 100644 --- a/htdocs/product/stock/stocktransfer/stocktransfer_card.php +++ b/htdocs/product/stock/stocktransfer/stocktransfer_card.php @@ -39,6 +39,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/stocktransfer/modules_stocktransfe $langs->loadLangs(array("stocks", "other", "productbatch", "companies")); if (isModEnabled('incoterm')) $langs->load('incoterm'); + // Get parameters $id = GETPOST('id', 'int'); $ref = GETPOST('ref', 'alpha'); @@ -954,12 +955,12 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } } } elseif ($object->status == $object::STATUS_VALIDATED && $permissiontoadd) { - print ''.$langs->trans("StockTransferDecrementation").''; + print ''.$langs->trans("StockTransferDecrementation").''; } elseif ($object->status == $object::STATUS_TRANSFERED && $permissiontoadd) { - print ''.$langs->trans("StockTransferDecrementationCancel").''; - print ''.$langs->trans("StockTransferIncrementation").''; + print ''.$langs->trans("StockTransferDecrementationCancel").''; + print ''.$langs->trans("StockTransferIncrementation").''; } elseif ($object->status == $object::STATUS_CLOSED && $permissiontoadd) { - print ''.$langs->trans("StockTransferIncrementationCancel").''; + print ''.$langs->trans("StockTransferIncrementationCancel").''; } // Clone From 280ceef46b873232685f265822003fb94a82c0b7 Mon Sep 17 00:00:00 2001 From: Eric <1468823+rycks@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:55:32 +0100 Subject: [PATCH 4/8] outputlangs must not be a string as default value like others generateDocument functions (#28132) --- htdocs/delivery/class/delivery.class.php | 2 +- htdocs/product/stock/class/entrepot.class.php | 2 +- htdocs/product/stock/class/mouvementstock.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/delivery/class/delivery.class.php b/htdocs/delivery/class/delivery.class.php index 6bfe3a33dd7..2dd1fa0329c 100644 --- a/htdocs/delivery/class/delivery.class.php +++ b/htdocs/delivery/class/delivery.class.php @@ -1044,7 +1044,7 @@ class Delivery extends CommonObject * @param int $hideref Hide ref * @return int 0 if KO, 1 if OK */ - public function generateDocument($modele, $outputlangs = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) + public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0) { global $conf, $user, $langs; diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index 92df16fa867..ad6264d18d5 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -877,7 +877,7 @@ class Entrepot extends CommonObject * @param int $hideref Hide ref * @return int 0 if KO, 1 if OK */ - public function generateDocument($modele, $outputlangs = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) + public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0) { global $conf, $user, $langs; diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index 4976530eb5e..fc451ed8c1a 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -1153,7 +1153,7 @@ class MouvementStock extends CommonObject * @param int $hideref Hide ref * @return int 0 if KO, 1 if OK */ - public function generateDocument($modele, $outputlangs = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) + public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0) { global $conf, $user, $langs; From 1ef91d3a2184a2f5edff5631f4e4193308d0c471 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 15 Feb 2024 16:47:07 +0100 Subject: [PATCH 5/8] FIX avoid Unknown column 'pfp.ref_fourn' (#28145) --- htdocs/product/list.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 4f30e146f56..db58e7bfa0d 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -432,7 +432,21 @@ if (!empty($conf->global->PRODUCT_USE_UNITS)) { $sql .= ' WHERE p.entity IN ('.getEntity('product').')'; if ($sall) { - $sql .= natural_search(array_keys($fieldstosearchall), $sall); + // Clean $fieldstosearchall + $newfieldstosearchall = $fieldstosearchall; + unset($newfieldstosearchall['pfp.ref_fourn']); + unset($newfieldstosearchall['pfp.barcode']); + + $sql .= ' AND ('; + $sql .= natural_search(array_keys($newfieldstosearchall), $sall, 0, 1); + // Search also into a supplier reference 'pfp.ref_fourn'="RefSupplier" + $sql .= ' OR EXISTS (SELECT rowid FROM '.MAIN_DB_PREFIX.'product_fournisseur_price as pfp WHERE pfp.fk_product = p.rowid'; + $sql .= ' AND ('.natural_search('pfp.ref_fourn', $sall, 0, 1); + if (isModEnabled('barcode')) { + // Search also into a supplier barcode 'pfp.barcode'='GencodBuyPrice'; + $sql .= ' OR '.natural_search('pfp.barcode', $sall, 0, 1); + } + $sql .= ')))'; } // if the type is not 1, we show all products (type = 0,2,3) if (dol_strlen($search_type) && $search_type != '-1') { From acf09b805f9843b41f3f0ac440e096ddc38abd06 Mon Sep 17 00:00:00 2001 From: MDW Date: Fri, 16 Feb 2024 12:59:04 +0100 Subject: [PATCH 6/8] Fix: Make all 'relative paths' absolute (#28196) # Fix: Make all 'relative paths' absolute The phpcs ruleset xml file's relative exclude patterns are relative to the filename(s) provided on the command line. Hence with partial verifications, the path exclusion does not function as we would like. Removing the relative-path attribute from the patterns the exclusion works. At the same time, the patterns were optimized and a comment was added. --- dev/setup/codesniffer/ruleset.xml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dev/setup/codesniffer/ruleset.xml b/dev/setup/codesniffer/ruleset.xml index 5b7dade0a98..ce59db18665 100644 --- a/dev/setup/codesniffer/ruleset.xml +++ b/dev/setup/codesniffer/ruleset.xml @@ -5,20 +5,20 @@ - build/html - build/aps - dev/tools/test/namespacemig - - documents - htdocs/core/class/lessc.class.php - htdocs/custom - htdocs/includes - htdocs/install/doctemplates/websites - htdocs/conf.php - */nltechno* - source - .git - .cache + + + /build/(html|aps)/ + /dev/tools/test/namespacemig/ + + /documents/ + /htdocs/core/class/lessc\.class\.php + /htdocs/(custom|includes)/ + /htdocs/install/doctemplates/websites + /htdocs/([^/]+/)?conf\.php + */nltechno* + /source/ + /\.git/ + /\.cache/ From 6e5fd5eb58b112daa3dac33bda3027329180ac79 Mon Sep 17 00:00:00 2001 From: Florian Mortgat <50440633+atm-florianm@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:31:12 +0100 Subject: [PATCH 7/8] FIX: notification module: for supplier orders (any of the 3 triggers), user can choose an e-mail template in conf, but the conf is not used when sending the notification (#28216) --- htdocs/core/class/notify.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php index 99c8c81bbba..01e7919e7a5 100644 --- a/htdocs/core/class/notify.class.php +++ b/htdocs/core/class/notify.class.php @@ -525,6 +525,7 @@ class Notify $link = ''.$newref.''; $dir_output = $conf->fournisseur->commande->dir_output; $object_type = 'order_supplier'; + $labeltouse = isset($conf->global->ORDER_SUPPLIER_VALIDATE_TEMPLATE) ? $conf->global->ORDER_SUPPLIER_VALIDATE_TEMPLATE : ''; $mesg = $outputlangs->transnoentitiesnoconv("Hello").",\n\n"; $mesg .= $outputlangs->transnoentitiesnoconv("EMailTextOrderValidatedBy", $link, $user->getFullName($outputlangs)); $mesg .= "\n\n".$outputlangs->transnoentitiesnoconv("Sincerely").".\n\n"; @@ -533,6 +534,7 @@ class Notify $link = ''.$newref.''; $dir_output = $conf->fournisseur->commande->dir_output; $object_type = 'order_supplier'; + $labeltouse = isset($conf->global->ORDER_SUPPLIER_APPROVE_TEMPLATE) ? $conf->global->ORDER_SUPPLIER_APPROVE_TEMPLATE : ''; $mesg = $outputlangs->transnoentitiesnoconv("Hello").",\n\n"; $mesg .= $outputlangs->transnoentitiesnoconv("EMailTextOrderApprovedBy", $link, $user->getFullName($outputlangs)); $mesg .= "\n\n".$outputlangs->transnoentitiesnoconv("Sincerely").".\n\n"; @@ -541,6 +543,7 @@ class Notify $link = ''.$newref.''; $dir_output = $conf->fournisseur->commande->dir_output; $object_type = 'order_supplier'; + $labeltouse = isset($conf->global->ORDER_SUPPLIER_REFUSE_TEMPLATE) ? $conf->global->ORDER_SUPPLIER_REFUSE_TEMPLATE : ''; $mesg = $outputlangs->transnoentitiesnoconv("Hello").",\n\n"; $mesg .= $outputlangs->transnoentitiesnoconv("EMailTextOrderRefusedBy", $link, $user->getFullName($outputlangs)); $mesg .= "\n\n".$outputlangs->transnoentitiesnoconv("Sincerely").".\n\n"; From 05cf98fae885e0b536f0d0c1fbc09ad977ad4002 Mon Sep 17 00:00:00 2001 From: MaximilienR-easya <122890855+MaximilienR-easya@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:38:46 +0100 Subject: [PATCH 8/8] Fix lost POST data when redirection after drag_n_drop an event inside the agenda (#28212) --- htdocs/comm/action/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index a5a898ef7f2..99d330b745a 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -756,7 +756,7 @@ if (empty($reshook) && GETPOST('actionmove', 'alpha') == 'mupdate') { $newdate = GETPOST('newdate', 'alpha'); if (empty($newdate) || strpos($newdate, 'dayevent_') != 0) { - header("Location: ".$backtopage); + header("Location: ".$backtopage, true, 307); exit; } @@ -841,7 +841,7 @@ if (empty($reshook) && GETPOST('actionmove', 'alpha') == 'mupdate') { } } if (!empty($backtopage)) { - header("Location: ".$backtopage); + header("Location: ".$backtopage, true, 307); exit; } else { $action = '';