We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4c7338 commit 5a81c83Copy full SHA for 5a81c83
2 files changed
CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
9
10
### Fixed
11
12
+- Fix default value format for multiple dropdown (GLPIObject)
13
- Increased the maximum length of the language column to support longer locale codes
14
15
## [1.21.24] - 2025-10-10
inc/field.class.php
@@ -249,7 +249,7 @@ public function prepareInputForAdd($input)
249
$input['name'] = $this->prepareName($input);
250
251
if ($input['multiple'] ?? false) {
252
- $input['default_value'] = json_encode($input['default_value'] ?? []);
+ $input['default_value'] = json_encode($input['default_value'] ?: []);
253
}
254
255
//reject adding when field name is too long for mysql
0 commit comments