From c3d68375ab5cae4dd5c9402c2843d1f62503362a Mon Sep 17 00:00:00 2001 From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com> Date: Wed, 24 Jun 2026 10:56:23 +0200 Subject: [PATCH 1/3] 1.14.2 --- CHANGELOG.md | 6 ++++++ plugin.xml | 7 ++++++- setup.php | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cf2b9eb..6e35e73f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/). +## [1.14.2] - 2026-06-24 + +### Fixed + +- Improve credit voucher workflow consistency + ## [1.14.1] - 2025-06-25 ### Fixed diff --git a/plugin.xml b/plugin.xml index 47540b90..375579ce 100644 --- a/plugin.xml +++ b/plugin.xml @@ -24,7 +24,12 @@ TECLIB' - + + 1.14.2 + ~10.0.0 + https://github.com/pluginsGLPI/credit/releases/download/1.14.2/glpi-credit-1.14.2.tar.bz2 + + 1.14.1 ~10.0.0 https://github.com/pluginsGLPI/credit/releases/download/1.14.1/glpi-credit-1.14.1.tar.bz2 diff --git a/setup.php b/setup.php index 26a28966..09fe7337 100644 --- a/setup.php +++ b/setup.php @@ -29,7 +29,7 @@ * ------------------------------------------------------------------------- */ -define('PLUGIN_CREDIT_VERSION', '1.14.1'); +define('PLUGIN_CREDIT_VERSION', '1.14.2'); // Minimal GLPI version, inclusive define("PLUGIN_CREDIT_MIN_GLPI", "10.0.0"); From 6bd574ced72bb98828e36db50d8394efb5bb8fd5 Mon Sep 17 00:00:00 2001 From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com> Date: Wed, 24 Jun 2026 11:12:25 +0200 Subject: [PATCH 2/3] fix CI --- inc/profile.class.php | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/inc/profile.class.php b/inc/profile.class.php index 0f423fa5..ad46c998 100644 --- a/inc/profile.class.php +++ b/inc/profile.class.php @@ -55,11 +55,7 @@ public function showForm($ID, $options = []) $profile->getFromDB($ID); echo "
"; - $rights = [['itemtype' => PluginCreditTicketConfig::getType(), - 'label' => PluginCreditTicketConfig::getTypeName(Session::getPluralNumber()), - 'field' => PluginCreditTicketConfig::$rightname - ] - ]; + $rights = self::getAllRights(); $matrix_options['title'] = PluginCreditTicketConfig::getTypeName(Session::getPluralNumber()); $profile->displayRightsChoiceMatrix($rights, $matrix_options); @@ -72,4 +68,21 @@ public function showForm($ID, $options = []) return true; } + + private static function getAllRights() + { + return [ + ['itemtype' => PluginCreditTicketConfig::getType(), + 'label' => PluginCreditTicketConfig::getTypeName(Session::getPluralNumber()), + 'field' => PluginCreditTicketConfig::$rightname, + ], + ]; + } + + public static function uninstall(Migration $migration): void + { + foreach (self::getAllRights() as $right) { + ProfileRight::deleteProfileRights([$right['field']]); + } + } } From 3da8800c625f118261fdd6a2d2abd6e488826bc5 Mon Sep 17 00:00:00 2001 From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com> Date: Wed, 24 Jun 2026 11:19:48 +0200 Subject: [PATCH 3/3] fix url --- plugin.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.xml b/plugin.xml index 375579ce..23d61f30 100644 --- a/plugin.xml +++ b/plugin.xml @@ -16,7 +16,7 @@ - https://pluginsglpi.github.io/credit/ + https://github.com/pluginsGLPI/credit https://github.com/pluginsGLPI/credit/releases https://github.com/pluginsGLPI/credit/issues https://glpi-plugins.readthedocs.io/en/latest/credit/index.html