From 87c3576a86f75d2a1dfd65597b5984088288a81f Mon Sep 17 00:00:00 2001 From: Vaadasch Date: Tue, 8 Apr 2025 15:21:38 +0200 Subject: [PATCH] BUG duration minutes (#33767) Co-authored-by: Laurent Destailleur --- htdocs/core/class/extrafields.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 6fbdecee407..abc6b775b03 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -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