Skip to content
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Fixed

- Fix an issue where data are not formatted when coming from a field plugin's custom field.

## [2.15.10] - 2026-08-07

### Fixed
Expand Down
7 changes: 7 additions & 0 deletions inc/commoninjectionlib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,13 @@ private function reformatThirdPass()
//Get search option associated with the field
$option = self::findSearchOption($searchOptions, $field);

if ($option && !isset($option['checktype'])) {
// In some cases, float datatype is wrongly detected as string, decimal or number, so we check that first.
$option['checktype'] = (preg_match('/^\d+(\.|\,)\d+$/', $value) !== 0)
Comment thread
jdurand-teclib marked this conversation as resolved.
Outdated
Comment thread
jdurand-teclib marked this conversation as resolved.
Outdated
? "float"
: $option['datatype'];
}

// Check some types
switch ($option['checktype'] ?? 'text') {
case "date":
Expand Down