From d6b5c71a8b5c46e70abf2dca08ef286652171ca8 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Tue, 20 May 2025 10:42:52 +0200 Subject: [PATCH 1/2] Fic(Condition): Fix condition check logic for dropdown field values --- inc/field.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { From 0c5bcc6322bc11ffe3d24c8f679596242c32b5b9 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Tue, 20 May 2025 11:15:31 +0200 Subject: [PATCH 2/2] dapat changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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