Merge pull request #32737 from hregis/fix_20_avoid_warnings_php

FIX #32736 + avoid php warning
This commit is contained in:
Laurent Destailleur
2025-01-23 01:57:20 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -207,6 +207,7 @@ if (empty($reshook)) {
$object->mode_reglement_id = GETPOSTINT('mode_reglement_id');
$object->fk_account = GETPOSTINT('fk_account');
$object->fk_project = GETPOSTINT('fk_project');
$object->paye = ChargeSociales::STATUS_UNPAID;
$id = $object->create($user);
if ($id <= 0) {

View File

@@ -72,7 +72,7 @@ $search_date_limit_endyear = GETPOSTINT('search_date_limit_endyear');
$search_date_limit_start = dol_mktime(0, 0, 0, $search_date_limit_startmonth, $search_date_limit_startday, $search_date_limit_startyear);
$search_date_limit_end = dol_mktime(23, 59, 59, $search_date_limit_endmonth, $search_date_limit_endday, $search_date_limit_endyear);
$search_project_ref = GETPOST('search_project_ref', 'alpha');
$search_users = GETPOST('search_users', 'intcomma');
$search_users = GETPOST('search_users', 'array:int');
$search_type = GETPOST('search_type', 'alpha');
$search_account = GETPOST('search_account', 'alpha');