BUG duration minutes (#33767)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
611cc510d7
commit
87c3576a86
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue