diff --git a/CHANGELOG.md b/CHANGELOG.md index cbab0fde..8f4e21a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASE] ### Fixed - +- Fix condition check logic for dropdown field values - Fix validation for mandatory multiple dropdown ## [1.21.21] - 2025-03-21 diff --git a/inc/field.class.php b/inc/field.class.php index 02d43247..4f3a4d92 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -1033,9 +1033,9 @@ function () { 'change', 'input, select, textarea', function(evt) { - if (evt.target.name == "itilcategories_id") { + if (evt.target.name == "itilcategories_id" && {$items_id} == 0) { // Do not refresh tab container when form is reloaded - // to prevent issues diues to duplicated calls + // to prevent issues diues to duplicated calls (when object is new) return; } if ($(evt.target).closest('#{$html_id}').length > 0) {