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 @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fix item creation with null value for mandatory fields
- Fix search crash when two containers share a dropdown field with the same name.
- Fix handle native GLPI dropdown types when binding additional fields to form destination
- Fix container name/label corruption during GenericObject migration, which could break the migration with a MySQL identifier-length error.

## [1.24.2] - 2026-06-30

Expand Down
8 changes: 7 additions & 1 deletion inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public static function installBaseData(Migration $migration, $version)
$update_data = [
'id' => $container['id'],
'itemtypes' => $itemtypes,
'label' => $container['label'],
];
if ($container_name !== $container['name']) {
$update_data['name'] = $container_name;
Expand Down Expand Up @@ -648,7 +649,12 @@ public function defineTabs($options = [])

public function prepareInputForUpdate($input)
{
return PluginFieldsToolbox::prepareLabel($input);
// sanitize label only; name is intentionally left untouched here (see migration callers)
if (isset($input['label']) && !empty($input['label'])) {
$input['label'] = PluginFieldsToolbox::sanitizeLabel((string) $input['label']);
}
Comment thread
stonebuzz marked this conversation as resolved.

return $input;
}

public function prepareInputForAdd($input)
Expand Down
Loading