Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [UNRELEASE]

- Fix incompatibility of `multiple` dropdowns with `massiveaction`
- Fix default value properly applied in multiple dropdown search options

## [1.21.22] - 2025-05-28

Expand Down
6 changes: 5 additions & 1 deletion inc/abstractcontainerinstance.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ public static function getSpecificValueToDisplay($field, $values, array $options
) {
$itemtype = PluginFieldsDropdown::getClassname($field_specs->fields['name']);
if (empty($values[$field])) {
return ''; // Value not defined
if (!empty($field_specs->fields["default_value"])) {
$values[$field] = $field_specs->fields['default_value'];
} else {
return ''; // Value not defined
}
}
$values = json_decode($values[$field]);
if (!is_array($values)) {
Expand Down