Bug 1012418

Summary: Cannot close Guided Rule Editor after removing fact pattern
Product: [Retired] JBoss BRMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0   
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:17:12 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 Jiri Locker 2013-09-26 12:44:37 UTC
Description of problem:
After removing a fact pattern in Guided Rule Editor it is not possible to close it. That can be quite annoying if the user wants to drop unsaved changes by closing the editor.

Moreover, there is a risk of breaking the Authoring perspective layout by switching to another perspective. No matter which is the target perspective, the broken rule will take up all space and the UI becomes unusable. Refreshing/re-logging helps but Authoring perspective has been saved in the broken state and it is quite complicated to restore the original layout (split with Project Explorer and editors).

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

How reproducible:
-

Steps to Reproduce:
1. go to mortgages, open Bankruptcy history
2. remove conditional element number 2. (containing Bankruptcy)
3. close the editor

Actual results:
The editor doesn't close. JavaScript error logged into browser console.

Expected results:
Guided editor should close at any point of editing the rule.

Additional info:

Comment 2 Jiri Locker 2013-09-26 15:32:48 UTC
It is possible to make the editor closeable again by adding a new fact pattern. This can be helpful before the bug is fixed.