dolibarr/htdocs/comm/propal
Aymeric Cucherousset a291e0a779
Fix #39412 Add PRG redirect after adding a line to avoid duplicate on refresh (#39528)
Adding a line to a proposal, order, invoice, supplier order or supplier
invoice did not redirect after the POST succeeded, so pressing F5 (or
accepting the browser's "confirm form resubmission" dialog) replayed the
addline POST and duplicated the last line.

Add the same header('Location: ...'); exit(); redirect already used by
the neighboring confirm_addsubtotalline action, on the success path only,
in:
- htdocs/comm/propal/card.php
- htdocs/commande/card.php
- htdocs/compta/facture/card.php
- htdocs/fourn/commande/card.php
- htdocs/fourn/facture/card.php

Validation-error paths are untouched: no DB write happens there, so a
refresh can't duplicate anything, and the form must keep re-displaying
the user's typed values.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-08-15 02:45:27 +02:00
..
class FIX #37658 - Add unit tests for TTC unit price rounding and add fixes for others objects (proposals, orders, invoices and contracts) (#39055) 2026-08-11 19:48:40 +02:00
stats Debug v24 2026-07-03 15:53:01 +02:00
tpl NEW Display thirdparty name with ref in linked objects for all document types (#37906) 2026-04-19 15:59:45 +02:00
agenda.php Revert "/imports/index.php wrongly shows access refused (#39379)" (#39386) 2026-08-04 22:23:57 +02:00
card.php Fix #39412 Add PRG redirect after adding a line to avoid duplicate on refresh (#39528) 2026-08-15 02:45:27 +02:00
contact.php add dolBuildUrl (#35664) 2025-10-17 02:31:07 +02:00
document.php clean code (#38081) 2026-05-07 14:13:08 +02:00
index.php Fix option to set max short list 2026-07-04 13:33:17 +02:00
list.php NEW : stats button on lists (#38852) 2026-06-22 13:54:14 +02:00
messaging.php Revert "/imports/index.php wrongly shows access refused (#39379)" (#39386) 2026-08-04 22:23:57 +02:00
note.php Add custom tpl to note (#38437) 2026-05-26 16:02:36 +02:00