diff --git a/CHANGELOG.md b/CHANGELOG.md index e7864950..00201ee2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ 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] +## [1.21.29] - 2026-04-16 - Fix application of the read-only option on RichText fields. - Fix loading of default value for RichText fields. diff --git a/hook.php b/hook.php index e1683f12..e0ff828b 100644 --- a/hook.php +++ b/hook.php @@ -374,7 +374,7 @@ function plugin_fields_addWhere($link, $nott, $itemtype, $ID, $val, $searchtype) if ($nott) { $link = $link . ' NOT '; } - return $link . 'CAST(' . $DB->quoteName("$table" . '_' . "$field") . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val) ; + return $link . ' CAST(' . $DB->quoteName("$table" . '_' . "$field") . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val) ; } else { // if 'number' field with name is found with <= or >= or < or > search // update WHERE clause with the correct operator diff --git a/plugin.xml b/plugin.xml index f758315c..6b2ec631 100644 --- a/plugin.xml +++ b/plugin.xml @@ -98,6 +98,11 @@ Il existe un [script de migration](https://github.com/pluginsGLPI/customfields/b Olivier Moron + + 1.21.29 + ~10.0.11 + https://github.com/pluginsGLPI/fields/releases/download/1.21.29/glpi-fields-1.21.29.tar.bz2 + 1.21.28 ~10.0.11 diff --git a/setup.php b/setup.php index dfa99c03..4710b43e 100644 --- a/setup.php +++ b/setup.php @@ -28,7 +28,7 @@ * ------------------------------------------------------------------------- */ -define('PLUGIN_FIELDS_VERSION', '1.21.28'); +define('PLUGIN_FIELDS_VERSION', '1.21.29'); // Minimal GLPI version, inclusive define('PLUGIN_FIELDS_MIN_GLPI', '10.0.11');