Merge pull request #14136 from atm-gauthier/10.0_getpost_extrafields_date

FIX : $_POST must be GETPOST
This commit is contained in:
Laurent Destailleur 2020-06-28 21:08:46 +02:00 committed by GitHub
commit b3fdb9f168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2103,7 +2103,7 @@ class ExtraFields
if (in_array($key_type, array('date','datetime')))
{
// Clean parameters
$value_key=dol_mktime($_POST[$keysuffix."options_".$key.$keyprefix."hour"], $_POST[$keysuffix."options_".$key.$keyprefix."min"], 0, $_POST[$keysuffix."options_".$key.$keyprefix."month"], $_POST[$keysuffix."options_".$key.$keyprefix."day"], $_POST[$keysuffix."options_".$key.$keyprefix."year"]);
$value_key=dol_mktime(GETPOST($keysuffix."options_".$key.$keyprefix."hour", 'int'), GETPOST($keysuffix."options_".$key.$keyprefix."min", 'int'), 0, GETPOST($keysuffix."options_".$key.$keyprefix."month", 'int'), GETPOST($keysuffix."options_".$key.$keyprefix."day", 'int'), GETPOST($keysuffix."options_".$key.$keyprefix."year", 'int'));
}
elseif (in_array($key_type, array('checkbox', 'chkbxlst')))
{