From e3f5f550acb0c94e5a0406bc7535f06dc5fa136f Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Mon, 18 Nov 2024 14:04:42 +0100 Subject: [PATCH 1/3] fix: datatype number for search --- inc/container.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/container.class.php b/inc/container.class.php index ca508c01..90dbab26 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -1957,6 +1957,8 @@ public static function getAddSearchOptions($itemtype, $containers_id = false) $opt[$i]['datatype'] = 'text'; break; case 'number': + $opt[$i]['datatype'] = 'decimal'; + break; case 'date': case 'datetime': $opt[$i]['datatype'] = $data['type']; From 6ed727eabd51fadd08b0e8bef41ee72374916cd4 Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Thu, 26 Dec 2024 13:05:05 +0100 Subject: [PATCH 2/3] Update Changelog.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf784055..cebc3818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELAESE] ### Fixed +- Change the decimal type of number fields to display the decimal part of the decimal numbers in search options. - Do not destroy the dropdown table/class if it is being used by another container. - Fix fields updates with multiple containers via the API. From 43bc28c408f22719146eed495bfe296265237f5c Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Thu, 26 Dec 2024 14:54:26 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cebc3818..9d78d4d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELAESE] ### Fixed -- Change the decimal type of number fields to display the decimal part of the decimal numbers in search options. +- Force decimal ‘datatype’ of `numeric` fields for more accurate display. - Do not destroy the dropdown table/class if it is being used by another container. - Fix fields updates with multiple containers via the API.