Files
dolibarr/htdocs/compta
minimexat 61ece3d5c5 FIX Replace direct $_POST access with GETPOST() in origin/originid recovery paths (#37143)
When a create action fails and rolls back, several list/card pages
restore origin parameters by assigning $_POST values directly to
$_GET. This causes 'undefined array key' warnings on PHP 8.1+ if
the POST data is missing or malformed.

Replace raw $_POST['origin'] with GETPOST('origin', 'alpha') and
raw $_POST['originid'] with GETPOSTINT('originid') which safely
handle missing parameters.

Files fixed:
- htdocs/expedition/list.php
- htdocs/fourn/commande/list.php
- htdocs/commande/list.php
- htdocs/compta/facture/card.php
- htdocs/reception/list.php

These files had TODO-style comments ('Keep this ?', 'Keep GET and
POST here ?') indicating the pattern was already questionable.

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
2026-02-08 03:05:47 +01:00
..
2026-01-12 19:18:52 +01:00
2025-10-17 02:31:07 +02:00
2025-05-07 13:57:40 +02:00
2026-02-08 00:19:03 +01:00
2026-02-01 00:00:49 +01:00
2026-02-02 19:22:04 +01:00
2026-01-07 11:07:31 +01:00
2026-02-04 15:20:36 +01:00
2025-10-17 02:31:07 +02:00
2026-02-01 00:00:49 +01:00
2025-11-24 16:29:21 +01:00
2025-11-24 16:29:21 +01:00
2026-02-04 16:33:50 +01:00
2025-09-21 23:22:33 +02:00