From d5cb81982d3fb558d51f59cd18a20bc56a92ebc0 Mon Sep 17 00:00:00 2001 From: Antonin MARCHAL Date: Wed, 16 Jun 2021 14:21:23 +0200 Subject: [PATCH] fix wrong display on extrafields type = double --- 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 16d58f51eb3..8f4d5e9b8d7 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1613,7 +1613,7 @@ class ExtraFields if (!empty($extrafieldsobjectkey)) { $label = $this->attributes[$extrafieldsobjectkey]['label'][$key]; $type = $this->attributes[$extrafieldsobjectkey]['type'][$key]; - $size = (int) $this->attributes[$extrafieldsobjectkey]['size'][$key]; + $size = $this->attributes[$extrafieldsobjectkey]['size'][$key]; $default = $this->attributes[$extrafieldsobjectkey]['default'][$key]; $computed = $this->attributes[$extrafieldsobjectkey]['computed'][$key]; $unique = $this->attributes[$extrafieldsobjectkey]['unique'][$key];