Skip to content

Commit 4da9e9b

Browse files
authored
1.21.29 (#1183)
1 parent c19c05d commit 4da9e9b

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## [UNRELEASED]
8+
## [1.21.29] - 2026-04-16
99

1010
- Fix application of the read-only option on RichText fields.
1111
- Fix loading of default value for RichText fields.

hook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function plugin_fields_addWhere($link, $nott, $itemtype, $ID, $val, $searchtype)
374374
if ($nott) {
375375
$link = $link . ' NOT ';
376376
}
377-
return $link . 'CAST(' . $DB->quoteName("$table" . '_' . "$field") . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val) ;
377+
return $link . ' CAST(' . $DB->quoteName("$table" . '_' . "$field") . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val) ;
378378
} else {
379379
// if 'number' field with name is found with <= or >= or < or > search
380380
// update WHERE clause with the correct operator

plugin.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ Il existe un [script de migration](https://github.com/pluginsGLPI/customfields/b
9898
<author>Olivier Moron</author>
9999
</authors>
100100
<versions>
101+
<version>
102+
<num>1.21.29</num>
103+
<compatibility>~10.0.11</compatibility>
104+
<download_url>https://github.com/pluginsGLPI/fields/releases/download/1.21.29/glpi-fields-1.21.29.tar.bz2</download_url>
105+
</version>
101106
<version>
102107
<num>1.21.28</num>
103108
<compatibility>~10.0.11</compatibility>

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31-
define('PLUGIN_FIELDS_VERSION', '1.21.28');
31+
define('PLUGIN_FIELDS_VERSION', '1.21.29');
3232

3333
// Minimal GLPI version, inclusive
3434
define('PLUGIN_FIELDS_MIN_GLPI', '10.0.11');

0 commit comments

Comments
 (0)