Skip to content
Closed
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 @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fix text area fields size and alignment
- Optimize container loading when there are a large number of entities
- Adding a verification in refreshContainer function for obj value which can be an empty string instead of an array
- Fix refreshContainer crash when a field is serialized both as a scalar and as an array

## [1.24.0] - 2026-04-16

Expand Down
6 changes: 6 additions & 0 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@
'itemtype' => ['LIKE' , 'PluginFields%'],
]);

// clean plugin configuration
$config = new PluginConfig();

Check failure on line 169 in hook.php

View workflow job for this annotation

GitHub Actions / GLPI 11.0.x - php:8.2 - mariadb:10.6 / Continuous integration

Instantiated class PluginConfig not found.

Check failure on line 169 in hook.php

View workflow job for this annotation

GitHub Actions / GLPI 11.0.x - php:8.5 - mariadb:11.8 / Continuous integration

Instantiated class PluginConfig not found.
$config->deleteByCriteria([

Check failure on line 170 in hook.php

View workflow job for this annotation

GitHub Actions / GLPI 11.0.x - php:8.2 - mariadb:10.6 / Continuous integration

Call to method deleteByCriteria() on an unknown class PluginConfig.

Check failure on line 170 in hook.php

View workflow job for this annotation

GitHub Actions / GLPI 11.0.x - php:8.5 - mariadb:11.8 / Continuous integration

Call to method deleteByCriteria() on an unknown class PluginConfig.
'context' => ['plugin:fields'],
]);

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,8 @@ function(obj, item) {
var name = multiple_matches[1];
if (!(name in obj) || obj[name] == "") {
obj[name] = [];
} else if (!Array.isArray(obj[name])) {
obj[name] = [obj[name]];
}
obj[name].push(item.value);
} else {
Expand Down
Loading