diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab8beb8..071490a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,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 ## [1.24.0] - 2026-04-16 diff --git a/inc/field.class.php b/inc/field.class.php index 6ff05e1d..039e812f 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -1011,7 +1011,7 @@ function(obj, item) { var multiple_matches = item.name.match(/^(.+)\[\]$/); if (multiple_matches) { var name = multiple_matches[1]; - if (!(name in obj)) { + if (!(name in obj) || obj[name] == "") { obj[name] = []; } obj[name].push(item.value);