Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025910Openbravo ERPA. Platformpublic2014-03-05 15:472014-03-26 08:12
alostale 
alostale 
immediateminoralways
closedfixed 
5
 
3.0PR14Q2 
dbaz
Core
Pre packaging ( pi )
2014-02-26
https://code.openbravo.com/erp/devel/pi/rev/20eb3426d990 [^]
No
0025910: quick launch popup is not closed when item is selected
Quick launch popup is not closed when item is selected till the window is opened. In case of manual windows is never closed.
-Open quick launch
-Type Sales Order and select it
-Popup is not closed till the window is open

-As sys admin
-Open quick launch
-Open Module Management
-It's never closed automatically
No tags attached.
duplicate of defect 00260783.0PR14Q2 closed alostale random CI int-gui failure 
related to feature request 0025574 closed dbaz Upgrade SmartClient 10.0d 
Issue History
2014-03-05 15:47alostaleNew Issue
2014-03-05 15:47alostaleAssigned To => AugustoMauch
2014-03-05 15:47alostaleModules => Core
2014-03-05 15:47alostaleTriggers an Emergency Pack => No
2014-03-05 15:48alostaleRegression level => Pre packaging ( pi )
2014-03-05 15:48alostaleRegression date => 2014-02-26
2014-03-05 15:48alostaleRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/20eb3426d990 [^]
2014-03-05 15:48alostaleRelationship addedrelated to 0025574
2014-03-06 08:35alostaleAssigned ToAugustoMauch => alostale
2014-03-06 08:45alostaleNote Added: 0064887
2014-03-06 08:45alostaleIssue Monitored: dbaz
2014-03-06 08:45alostaleReview Assigned To => dbaz
2014-03-06 08:47alostaleNote Edited: 0064887bug_revision_view_page.php?bugnote_id=0064887#r5545
2014-03-06 08:50hgbotCheckin
2014-03-06 08:50hgbotNote Added: 0064888
2014-03-06 08:50hgbotStatusnew => resolved
2014-03-06 08:50hgbotResolutionopen => fixed
2014-03-06 08:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/823fbf69dcf74ba770f0e5900f442bac284542b8 [^]
2014-03-06 17:20hudsonbotCheckin
2014-03-06 17:20hudsonbotNote Added: 0064934
2014-03-18 01:14dbazNote Added: 0065244
2014-03-18 01:14dbazStatusresolved => new
2014-03-18 01:14dbazResolutionfixed => open
2014-03-18 11:11hgbotCheckin
2014-03-18 11:11hgbotNote Added: 0065253
2014-03-18 11:11hgbotStatusnew => resolved
2014-03-18 11:11hgbotResolutionopen => fixed
2014-03-18 11:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/823fbf69dcf74ba770f0e5900f442bac284542b8 [^] => http://code.openbravo.com/erp/devel/pi/rev/56436da527ee599c3d5e74394c25bbb2713aa2db [^]
2014-03-18 11:12alostaleNote Added: 0065254
2014-03-19 02:42hudsonbotCheckin
2014-03-19 02:42hudsonbotNote Added: 0065286
2014-03-21 15:26dbazNote Added: 0065361
2014-03-21 15:26dbazStatusresolved => new
2014-03-21 15:26dbazResolutionfixed => open
2014-03-24 11:56hgbotCheckin
2014-03-24 11:56hgbotNote Added: 0065385
2014-03-24 11:56hgbotStatusnew => resolved
2014-03-24 11:56hgbotResolutionopen => fixed
2014-03-24 11:56hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/56436da527ee599c3d5e74394c25bbb2713aa2db [^] => http://code.openbravo.com/erp/devel/pi/rev/69c758824b3e22ac0ac0adf3751ebb5e0f4d95c3 [^]
2014-03-25 10:20alostaleRelationship addedduplicate of 0026078
2014-03-25 10:25hgbotCheckin
2014-03-25 10:25hgbotNote Added: 0065415
2014-03-25 16:20dbazNote Added: 0065430
2014-03-25 16:20dbazStatusresolved => closed
2014-03-25 16:20dbazFixed in Version => PR14Q2
2014-03-25 18:09hgbotCheckin
2014-03-25 18:09hgbotNote Added: 0065438
2014-03-25 19:47hudsonbotCheckin
2014-03-25 19:47hudsonbotNote Added: 0065444
2014-03-25 19:47hudsonbotCheckin
2014-03-25 19:47hudsonbotNote Added: 0065450
2014-03-26 08:12hudsonbotCheckin
2014-03-26 08:12hudsonbotNote Added: 0065455

Notes
(0064887)
alostale   
2014-03-06 08:45   
(edited on: 2014-03-06 08:47)
Problem:

When quick launch popup is being closed focus is set in the quick launch widget (why?). After SC upgrade, pressing enter to select the item in the drop down causes it to be detected as click event in the widget, opening it again just after closing.

Solution:

Don't set focus in the widget.

Test Plan:
-Both for Quick Launch and Create New launchers:
 * Select item by typing and pressing enter
 * Select item with mouse
In all the cases popup should be closed after item is selected.

(0064888)
hgbot   
2014-03-06 08:50   
Repository: erp/devel/pi
Changeset: 823fbf69dcf74ba770f0e5900f442bac284542b8
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 06 08:50:29 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/823fbf69dcf74ba770f0e5900f442bac284542b8 [^]

fixed bug 25910: quick launch popup is not closed when item is selected

  Do not set focus on QuickRun when closing, as in some cases enter click to
  select an item in the drop down is captured after the focus set causing the
  launcher to be reopened.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quickrun-widget.js
---
(0064934)
hudsonbot   
2014-03-06 17:20   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9f242c9968f6 [^]
Maturity status: Test
(0065244)
dbaz   
2014-03-18 01:14   
The fix brokes another thing (at least in Chrome):

With the focus in the "Workspace" tab, if you press CTRL + O, the "Quick Launch" is opened. If you press CTRL + O again, the "Quick Launch" is closed.

Now it comes the problem: if you press CTRL + O again the native browser "Open" view is opened. It didn't happen before the fix.

The problem is that once the quick launch is closed the first time, the focus is lost (no element in the page has the focus), so the focus is in the browser itself and keyboard shortcuts are not captured.
(0065253)
hgbot   
2014-03-18 11:11   
Repository: erp/devel/pi
Changeset: 56436da527ee599c3d5e74394c25bbb2713aa2db
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 18 11:11:05 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/56436da527ee599c3d5e74394c25bbb2713aa2db [^]

fixed bug 25910: quick launch popup is not closed when item is selected

  Focus needs to be reset in order to make keyboard shortcuts work

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quickrun-widget.js
---
(0065254)
alostale   
2014-03-18 11:12   
New fix resets focus with some delay, this makes shortcuts work.

Tested explained test plan before and shortcuts opening the launcher manually and through shortcut.
(0065286)
hudsonbot   
2014-03-19 02:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9b8682dba110 [^]
Maturity status: Test
(0065361)
dbaz   
2014-03-21 15:26   
With the focus in the "Workspace" tab, if you do a "long" CTRL+O press (or leave the CTRL+O pressed indefinitely), the native browser "Open" view is opened. It didn't happen in MP31.

Theoretically something that could fix the issue is before the 'setTimeout', set the focus in some place that is for sure that will exist and is able to accept the focus. Then the timeout will change it to the previous focused element. The most important thing is to ensure that at any single moment the focus is inside the application.
(0065385)
hgbot   
2014-03-24 11:56   
Repository: erp/devel/pi
Changeset: 69c758824b3e22ac0ac0adf3751ebb5e0f4d95c3
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 24 11:56:34 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/69c758824b3e22ac0ac0adf3751ebb5e0f4d95c3 [^]

fixed bug 25910: prevent continous CRTL-O to open browser's open dialog

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quickrun-widget.js
---
(0065415)
hgbot   
2014-03-25 10:25   
Repository: erp/devel/pi
Changeset: a07f840d54afaa17822f6e4be4a18b996409b2fc
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 25 10:24:01 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a07f840d54afaa17822f6e4be4a18b996409b2fc [^]

fixed bug 26078, related to bug 25910: fixed CI

  CI was failing due to the timeout introduced in quick run widget in order to
  prevent quick launch to be kept open just after selecting an item.

  This caused sync test to fail as it was closing and opening profile widget without
  waiting the 50ms defined in the timeout.

  Current patch adds this timeout just to quick launch and not to all quick run widgets

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quickrun-widget.js
---
(0065430)
dbaz   
2014-03-25 16:20   
Reviewed @ changeset: 22767 - 1dcbf92e17e9

A changeset due to code-review is still pending.
(0065438)
hgbot   
2014-03-25 18:09   
Repository: erp/devel/pi
Changeset: 82c2bef68eed5d5fc2bfd518ff69a29f6fa3abb4
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 25 18:09:00 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/82c2bef68eed5d5fc2bfd518ff69a29f6fa3abb4 [^]

related to bug 25910: return super value

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js
---
(0065444)
hudsonbot   
2014-03-25 19:47   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/05169b1f5a79 [^]
Maturity status: Test
(0065450)
hudsonbot   
2014-03-25 19:47   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/05169b1f5a79 [^]
Maturity status: Test
(0065455)
hudsonbot   
2014-03-26 08:12   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d422276a3bd9 [^]
Maturity status: Test