BUG duration minutes (#33767)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Vaadasch 2025-04-08 15:21:38 +02:00 committed by GitHub
parent 611cc510d7
commit 87c3576a86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2726,7 +2726,7 @@ class ExtraFields
$value_key = dol_mktime(GETPOSTINT("options_".$key."hour"), GETPOSTINT("options_".$key."min"), GETPOSTINT("options_".$key."sec"), GETPOSTINT("options_".$key."month"), GETPOSTINT("options_".$key."day"), GETPOSTINT("options_".$key."year"), 'gmt');
} elseif (in_array($key_type, array('duration'))) {
$value_hours = GETPOSTINT("options_" . $key . "hour");
$value_minutes = GETPOSTINT("options_" . $key . "minute");
$value_minutes = GETPOSTINT("options_" . $key . "min");
$value_key = $value_hours * 3600 + $value_minutes * 60;
} elseif (in_array($key_type, array('checkbox', 'chkbxlst'))) {
$value_arr = GETPOST("options_".$key, 'array'); // check if an array