Bug 999282

Summary: 'Duplicate current page' button takes user to incorrect page
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jan Hrcek <jhrcek>
Component: BAMAssignee: Neus Miras <nmirasch>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hrcek <jhrcek>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: pzapataf
Target Milestone: ER4   
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:11:17 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:
Attachments:
Description Flags
Video of reproducing steps none

Description Jan Hrcek 2013-08-21 05:38:27 UTC
Created attachment 788719 [details]
Video of reproducing steps

Description of problem:
The button 'Duplicate current page' in the administrator bar doesn't take user to the correct page after the steps described below, but instead takes him to 'Create new page'.

Version-Release number of selected component (if applicable):
BPMS 6.0.0.ER1

How reproducible:
Always

Steps to Reproduce:
1. starting from default homepage (workspace Showcase, page Home) click 'Create new page' in the admin bar (this correctly takes you to 'Create new page' of the General options view)
2. Without creating a new page, click 'Back to workspace' button at the top left
3. Now click on 'Duplicate current page' button

Actual results:
User is taken to page 'Create new page' as if he clicked the button in step 1

Expected results:
User should be taken to page 'Duplicate page Home'

Additional info:

Note, that when clicked immediately (without first clicking 'Create new page') the button works as expected - it takes us to 'Duplicate page Home'.
But when used in sequence described, the problem arises.

Video of reproducing steps attached.

Comment 1 Neus Miras 2013-09-05 09:56:40 UTC
Now the handler duplicate and create page action is reset before a new duplicate and create page action is requested.

Commits:
https://github.com/droolsjbpm/dashboard-builder/commit/3f210f7baf507c4613917995a9d0c265487ee689

Comment 6 Jan Hrcek 2013-10-17 05:27:01 UTC
Ok, verified with BPMS 6.0.0 ER4