dolibarr/htdocs/reception
Jam Balaya 67aadf2cba
FIX: undefined variables from wrong variable names (#39115)
Several pages read a variable that is never defined on that page (copy/paste
from another page), so PHPStan level 10 flags 'Variable $x might not be
defined' and PHP 8 emits an undefined-variable warning with a null value:

- reception/card.php: $reception -> $object (matches the 10 other builddoc
  blocks in the same file; otherwise the output PDF language is wrong)
- loan/payment/card.php: $object->id -> $id (page uses $id; matches the
  adjacent enabled-button line)
- opensurvey/card.php: ConfirmRemovalOfPoll uses $id -> $numsondage
  (otherwise the confirmation message placeholder is empty)
- opensurvey/results.php: guard $expiredate with !empty() (never defined on
  this page; still falls back to $object->date_fin)
- projet/card.php: guard $morecss with !empty() (never defined here)

No behaviour change beyond removing the undefined-variable reads.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 16:08:10 +02:00
..
class Fix reception status ignoring non-stockable services when STOCK_SUPPORTS_SERVICES is enabled (#38650) 2026-06-09 02:23:15 +02:00
stats Fix CI: Fix PHPStan notices (#38415) 2026-05-25 02:28:18 +02:00
tpl [FIX] Use date_reception instead of date_delivery in reception linkedobjectblock template (#38964) 2026-06-23 20:31:16 +02:00
card.php FIX: undefined variables from wrong variable names (#39115) 2026-07-13 16:08:10 +02:00
contact.php FIX reception/note.php and contact.php: wrong object passed to restrictedArea causing random access denied (#38604) 2026-06-09 01:43:48 +02:00
dispatch.php fix french comments (#39025) 2026-06-30 18:02:35 +02:00
document.php Qual: Fix PHPStan notices (#38064) 2026-05-11 01:26:15 +02:00
index.php
list.php Add stats page on list (product menu) 2026-05-19 20:46:24 +02:00
note.php FIX reception/note.php and contact.php: wrong object passed to restrictedArea causing random access denied (#38604) 2026-06-09 01:43:48 +02:00