Skip to content

Commit decd5bc

Browse files
authored
fix: datatype number for search (#857)
* fix: datatype number for search * Update Changelog.md * Update CHANGELOG.md
1 parent f23bccb commit decd5bc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [UNRELAESE]
99

1010
### Fixed
11+
- Force decimal ‘datatype’ of `numeric` fields for more accurate display.
1112
- Do not destroy the dropdown table/class if it is being used by another container.
1213
- Fix fields updates with multiple containers via the API.
1314

inc/container.class.php

+2
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,8 @@ public static function getAddSearchOptions($itemtype, $containers_id = false)
19571957
$opt[$i]['datatype'] = 'text';
19581958
break;
19591959
case 'number':
1960+
$opt[$i]['datatype'] = 'decimal';
1961+
break;
19601962
case 'date':
19611963
case 'datetime':
19621964
$opt[$i]['datatype'] = $data['type'];

0 commit comments

Comments
 (0)