diff --git a/inc/fields/timefield.class.php b/inc/fields/timefield.class.php index 728e3cffa..ef147a2af 100644 --- a/inc/fields/timefield.class.php +++ b/inc/fields/timefield.class.php @@ -49,12 +49,21 @@ public function getDesignSpecializationField() { $additions .= ''; $additions .= ''; $value = Html::entities_deep($this->question->fields['default_values']); - $additions .= Html::showTimeField('default_values', [ - 'type' => 'text', - 'id' => 'default_values', - 'value' => $value, - 'display' => false, - ]); + if (version_compare(GLPI_VERSION, '9.5') >= 0) { + $additions .= Html::showTimeField('default_values', [ + 'type' => 'text', + 'id' => 'default_values', + 'value' => $value, + 'display' => false, + ]); + } else { + $additions .= static::showTimeField('default_values', [ + 'type' => 'text', + 'id' => 'default_values', + 'value' => $value, + 'display' => false, + ]); + } $additions .= ''; $additions .= ''; $additions .= '';