Skip to content

Commit 9d2bb52

Browse files
authored
Fic(Condition): Fix condition check logic for dropdown field values (#953)
* Fic(Condition): Fix condition check logic for dropdown field values * dapat changelog
1 parent ebd334f commit 9d2bb52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [UNRELEASE]
99

1010
### Fixed
11-
11+
- Fix condition check logic for dropdown field values
1212
- Fix validation for mandatory multiple dropdown
1313

1414
## [1.21.21] - 2025-03-21

inc/field.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,9 +1033,9 @@ function () {
10331033
'change',
10341034
'input, select, textarea',
10351035
function(evt) {
1036-
if (evt.target.name == "itilcategories_id") {
1036+
if (evt.target.name == "itilcategories_id" && {$items_id} == 0) {
10371037
// Do not refresh tab container when form is reloaded
1038-
// to prevent issues diues to duplicated calls
1038+
// to prevent issues diues to duplicated calls (when object is new)
10391039
return;
10401040
}
10411041
if ($(evt.target).closest('#{$html_id}').length > 0) {

0 commit comments

Comments
 (0)