Skip to content
Merged

1.21.29 #1183

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ Il existe un [script de migration](https://github.com/pluginsGLPI/customfields/b
<author>Olivier Moron</author>
</authors>
<versions>
<version>
<num>1.21.29</num>
<compatibility>~10.0.11</compatibility>
<download_url>https://github.com/pluginsGLPI/fields/releases/download/1.21.29/glpi-fields-1.21.29.tar.bz2</download_url>
</version>
<version>
<num>1.21.28</num>
<compatibility>~10.0.11</compatibility>
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down