Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008850Openbravo ERPB. User interfacepublic2009-04-29 22:272009-06-06 00:00
iperdomo 
dbaz 
urgentmajoralways
closedfixed 
5
pi 
pipi 
Core
No
0008850: Errors in the Alert and Change Role links
* If you use the right-click on the Alert link, it triggers the link and you get the Alert Management page
* If you use the right-click on the 'Change role' link, it triggers the link and you get the Change Role popup

The real problem is that if you click the Alert link make a double request to backend and if you have Autosave enable it fails
250MP1
blocks defect 0008449 closed iperdomo Autosave does not work when leaving the window via Alert,Role-change,Logout 
Issue History
2009-04-29 22:27iperdomoNew Issue
2009-04-29 22:27iperdomoAssigned To => dbaz
2009-04-29 22:27iperdomoRegression testing => No
2009-04-29 22:27iperdomoStatusnew => scheduled
2009-04-29 22:27iperdomofix_in_branch => pi
2009-04-29 22:29iperdomoRelationship addedblocks 0008449
2009-04-29 22:30iperdomoTag Attached: 250MP1
2009-05-04 18:45iperdomoAssigned Todbaz => iperdomo
2009-05-04 19:28dbazNote Added: 0016027
2009-05-05 12:52iperdomoAssigned Toiperdomo => dbaz
2009-05-05 13:16dbazNote Added: 0016051
2009-05-05 13:16dbazNote Edited: 0016051
2009-05-05 13:16dbazAssigned Todbaz => iperdomo
2009-05-06 15:19dbazAssigned Toiperdomo => dbaz
2009-05-06 15:20hgbotCheckin
2009-05-06 15:20hgbotNote Added: 0016103
2009-05-06 15:20hgbotStatusscheduled => resolved
2009-05-06 15:20hgbotResolutionopen => fixed
2009-05-06 15:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7cdaabd7d150a8b1fa78b7e5a4646c092c9e3564 [^]
2009-06-05 07:37sureshbabuStatusresolved => closed
2009-06-05 07:37sureshbabuNote Added: 0016974
2009-06-05 07:37sureshbabuFixed in Version => pi
2009-06-06 00:00anonymoussf_bug_id0 => 2802030

Notes
(0016027)
dbaz   
2009-05-04 19:28   
The calls are managed by

function menuUserOptions() {
  openServletNewWindow('DEFAULT', false, '../ad_forms/Role.html', 'ROLE', null, null, '460', '800');
  return true;
}

and

function menuAlerts() {
  openLink('../ad_forms/AlertManagement.html', 'appFrame');
  return true;
}


which are javascript functions of utils.js with a single call
(0016051)
dbaz   
2009-05-05 13:16   
Defining this simple counter to count each time function menuUserOptions() is called, that will display the count inside the alert text

var global_count = 0;
function menuUserOptions() {
  global_count++;
  document.getElementById('alertLink').innerHTML = global_count;
  openServletNewWindow('DEFAULT', false, '../ad_forms/Role.html', 'ROLE', null, null, '460', '800');
  return true;
}

we can see that there is no double call

(0016103)
hgbot   
2009-05-06 15:20   
Repository: erp/devel/pi
Changeset: 7cdaabd7d150a8b1fa78b7e5a4646c092c9e3564
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed May 06 15:17:14 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7cdaabd7d150a8b1fa78b7e5a4646c092c9e3564 [^]

Fixed bug 8850: Now right mouse click is not allowed in User Options and Alerts

---
M src/org/openbravo/erpCommon/utility/VerticalMenu.html
---
(0016974)
sureshbabu   
2009-06-05 07:37   
Tested working fine