Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1186433

Summary: Test Scenario: input for field used with dependent enumeration not updated
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: Toni Rikkola <trikkola>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0CC: etirelli, kverlaen, lpetrovi
Target Milestone: ER5   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:39:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zuzana Krejčová 2015-01-27 16:28:23 UTC
Description of problem:
See also bug 1132484.

Enumeration contains the following:
'Fact.field1' : ['val1', 'val2']
'Fact.field2[field1=val1]' : ['val3', 'val4']

In a test scenario, add a given fact Fact, and both mentioned fields. If you start with 'val2' for 'field1' and try switching the values around, you will always only see an input element for 'field2'. The element doesn't switch to the expected select element with 'val3' and 'val4'.


Version-Release number of selected component (if applicable):
6.1 ER4


Steps to Reproduce:
1. Create the appropriate POJO and enumeration.
2. Create a test scenario, add a given fact Fact and add field1 and field2.
3. Select literal value 'val2' for field1.
4. Choose literal value and type in something for field2.
5. Switch field1 to 'val1'.


Actual results:
The input element for field2 stays as before.


Expected results:
The input element for field2 is switched to a select element with options 'val3' and 'val4'.

Comment 1 Toni Rikkola 2015-02-02 09:34:32 UTC
master:
https://github.com/droolsjbpm/kie-wb-common/commit/8eb9a1253

https://github.com/droolsjbpm/drools-wb/commit/44d258a4f

6.2.x
Some changes related to this that do not actually fix the issue.
https://github.com/droolsjbpm/kie-wb-common/commit/785f0fd41

The fix for this is in the commit for drools-wb, but it is not cherry-picked into 6.2.x yet.

Comment 3 Toni Rikkola 2015-02-03 09:19:15 UTC
*** Bug 1130081 has been marked as a duplicate of this bug. ***