FIX #31269 Bad use of GETPOSTINT (#31852)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
MB Informatique 2024-11-15 15:59:34 +01:00 committed by GitHub
parent 29ec5c7f47
commit bd15f8cc7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -907,7 +907,7 @@ if ($action == 'create') {
$res = $soc->fetch($socid);
}
if (GETPOSTINT('origin') && GETPOSTINT('originid')) {
if (GETPOST('origin') && GETPOSTINT('originid')) {
// Parse element/subelement (ex: project_task)
$regs = array();
$element = $subelement = GETPOST('origin', 'alphanohtml');