Bug 1042508 - Guided Editor - when closing as asset always asks "Are you sure you want to discard unsaved data" even if nothing has been changed
Summary: Guided Editor - when closing as asset always asks "Are you sure you want to d...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER5
: 6.1.0
Assignee: Toni Rikkola
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 23:07 UTC by Tihomir Surdilovic
Modified: 2020-03-27 19:41 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:41:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1130292 0 high CLOSED Guided rule editor does not save any then clause values, but at least it tells me it won't save them 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1176787 0 high CLOSED Unable to use some options for Integer sub-fields in Guided Rule Templates 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1179623 0 high CLOSED No alert when closing editors with unsaved changes 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1193026 0 medium CLOSED Test Scenario: when closing, editor asks "Are you sure you want to discard unsaved data" even if nothing has been change... 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1193027 0 medium CLOSED Guided DT: when closing, editor asks "Are you sure you want to discard unsaved data" even if nothing has been changed 2021-02-22 00:41:40 UTC


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.


Note You need to log in before you can comment on or make changes to this bug.