From 4f2f6cccba6cb5ce5e5f8465dae0150ee8a4b3b8 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Thu, 12 Feb 2026 08:11:52 +0100 Subject: [PATCH 1/2] 1.21.26 --- CHANGELOG.md | 2 +- plugin.xml | 5 +++++ setup.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbf3db8b..11f4e3cd 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.26] - 2026-02-12 ### Fixed diff --git a/plugin.xml b/plugin.xml index 0e0fb795..a883048e 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.26 + ~10.0.11 + https://github.com/pluginsGLPI/fields/releases/download/1.21.26/glpi-fields-1.21.26.tar.bz2 + 1.21.25 ~10.0.11 diff --git a/setup.php b/setup.php index 87da8553..1b02c436 100644 --- a/setup.php +++ b/setup.php @@ -28,7 +28,7 @@ * ------------------------------------------------------------------------- */ -define('PLUGIN_FIELDS_VERSION', '1.21.25'); +define('PLUGIN_FIELDS_VERSION', '1.21.26'); // Minimal GLPI version, inclusive define('PLUGIN_FIELDS_MIN_GLPI', '10.0.11'); From d80217895a059bb1a45b90c2f0ab8f5c0a2adbd5 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Thu, 12 Feb 2026 08:26:42 +0100 Subject: [PATCH 2/2] fix --- inc/container.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/container.class.php b/inc/container.class.php index 8ef8ccb4..b2c3f0cd 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -682,6 +682,7 @@ public static function generateTemplate($fields) continue; } + $template_class = file_get_contents(PLUGINFIELDS_DIR . '/templates/container.class.tpl'); $template_class = str_replace( ['%%CLASSNAME%%', '%%ITEMTYPE%%', '%%CONTAINER%%', '%%ITEMTYPE_RIGHT%%'], [ @@ -701,6 +702,7 @@ public static function generateTemplate($fields) } // Generate Datainjection files + $template_class = file_get_contents(PLUGINFIELDS_DIR . '/templates/injection.class.tpl'); if ($template_class === false) { Toolbox::logInFile('php-errors', 'Error: unable to load injection.class.tpl template.'); return false;