From 8af776f670cc98e9e8415a0cf73e1103affffb1a Mon Sep 17 00:00:00 2001 From: Stanislas Kita Date: Thu, 20 Nov 2025 14:15:12 +0100 Subject: [PATCH 1/3] Fix(Tag): fix value to display --- inc/tag.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/tag.class.php b/inc/tag.class.php index c3a6fee..bc061c7 100644 --- a/inc/tag.class.php +++ b/inc/tag.class.php @@ -415,7 +415,7 @@ public static function getSpecificValueToDisplay($field, $values, array $options { switch ($field) { case 'type_menu': - $itemtypes = json_decode((string) $values[$field]); + $itemtypes = !empty($values[$field]) ? json_decode((string) $values[$field], true) : []; if (!is_array($itemtypes)) { return " "; } From 3d7b23bd7fb0698049ecb7e4144b63bafd3443fa Mon Sep 17 00:00:00 2001 From: Stanislas Kita Date: Thu, 20 Nov 2025 14:15:39 +0100 Subject: [PATCH 2/3] adapt changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 302ca08..e412eae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Fixed + +- Improve tag handling: correctly add, update, and remove tags + ## [2.14.1] - 2025-11-20 -## Fixed +### Fixed - Improve tag handling: correctly add, update, and remove tags From ac031b1ae9b23ccf6fe65e5307d8db55438dc79a Mon Sep 17 00:00:00 2001 From: "Romain B." <8530352+Rom1-B@users.noreply.github.com> Date: Thu, 20 Nov 2025 14:21:19 +0100 Subject: [PATCH 3/3] Apply suggestion from @Rom1-B --- inc/tag.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/tag.class.php b/inc/tag.class.php index bc061c7..8d10b72 100644 --- a/inc/tag.class.php +++ b/inc/tag.class.php @@ -415,7 +415,7 @@ public static function getSpecificValueToDisplay($field, $values, array $options { switch ($field) { case 'type_menu': - $itemtypes = !empty($values[$field]) ? json_decode((string) $values[$field], true) : []; + $itemtypes = empty($values[$field]) ? [] : json_decode((string) $values[$field], true); if (!is_array($itemtypes)) { return " "; }