Skip to content

Commit f541f91

Browse files
stonebuzzRom1-B
andauthored
Fix search option (#307)
* Fix(Tag): fix value to display * adapt changelog * Apply suggestion from @Rom1-B --------- Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent 09c56e3 commit f541f91

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Improve tag handling: correctly add, update, and remove tags
13+
1014
## [2.14.1] - 2025-11-20
1115

12-
## Fixed
16+
### Fixed
1317

1418
- Improve tag handling: correctly add, update, and remove tags
1519

inc/tag.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public static function getSpecificValueToDisplay($field, $values, array $options
415415
{
416416
switch ($field) {
417417
case 'type_menu':
418-
$itemtypes = json_decode((string) $values[$field]);
418+
$itemtypes = empty($values[$field]) ? [] : json_decode((string) $values[$field], true);
419419
if (!is_array($itemtypes)) {
420420
return "&nbsp;";
421421
}

0 commit comments

Comments
 (0)