Bug 1042508

Summary: Guided Editor - when closing as asset always asks "Are you sure you want to discard unsaved data" even if nothing has been changed
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tihomir Surdilovic <tsurdilo>
Component: Business CentralAssignee: Toni Rikkola <trikkola>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: etirelli, jpaulraj, lpetrovi, manstis, rrajasek, trikkola
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:41:29 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:

Description Tihomir Surdilovic 2013-12-12 23:07:39 UTC
Guided Rule editor, after opening an asset and closing it without any changes, a message pops up asking user if they would like to save unsaved changed. this is not needed

Comment 3 Zuzana Krejčová 2013-12-19 13:57:22 UTC
See also bug 975922 comment 6 and bug 1001673.

Comment 4 Toni Rikkola 2014-03-11 08:22:17 UTC
Did some testing with the mortgage example. Just opened the rule and closed it without changes. Fixed the problems those rules had, even without changes the editor refused to close.

master
https://github.com/droolsjbpm/drools-wb/commit/5757f4264
6.0.x
https://github.com/droolsjbpm/drools-wb/commit/981024da8

If this bug shows up again. We will need the rule that caused the problem to fix the problem.

Comment 5 Zuzana Krejčová 2014-05-06 14:09:19 UTC
This doesn't seem to be an issue with the source of the rule but with the editor itself.

Steps to reproduce:
1. Create a guided rule, add a condition 'Fact( someField == value)'. Save.
2. Reopen the rule.
3. Change the value in the condition, save the rule.
4. Try to close the rule.

At this moment, you get the "Are you sure you want to discard unsaved data" alert.

The source of the rule is exactly the same before and after saving, accepting alert, reopening.

Comment 7 Toni Rikkola 2014-11-28 13:14:04 UTC
There was a bug in java file editor. Link between the editor and the source editor got broken and fields created in editor were not added into the source.

master:
https://github.com/droolsjbpm/kie-wb-common/commit/19de871f1

6.2.x:
https://github.com/droolsjbpm/kie-wb-common/commit/671a76b1d

Comment 15 Zuzana Krejčová 2015-02-16 12:16:12 UTC
GDT and TS editors are now covered by bug 1193026 and bug 1193027.

Comment 16 Toni Rikkola 2015-02-16 12:20:14 UTC
Thank you. I will set this as modified.