Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029746Openbravo ERPA. Platformpublic2015-04-30 10:262015-11-30 10:40
alostale 
caristu 
highmajorhave not tried
closedfixed 
5
 
3.0PR16Q1 
alostale
Core
No
0029746: unneded FIC request on record selection in some windows
In some windows (detected in Discounts and Promotions) an unneeded EDIT request is performed to FIC when a record is selected in grid view.

In other windows (such as Sales Order) a singe SETSESSION request is done, which is correct.
In a retail instance (ie. https://livebuilds.openbravo.com/retail_stable_pgsql_pi [^])

 1. Login with White Valley Group Admin role
 2. Go to Discounts and Promotions window
 3. Select any row in grid view
     --> 2 FIC requests are done for that record:
             -one in SETSESSION mode (ok)
             -another one in EDIT mode (not needed)
 4. This happens also for subtabs: Open product subtab
     --> 2 FIC requests are done for that record:
             -one in SETSESSION mode (ok)
             -another one in EDIT mode (not needed)
Performance
related to defect 00205223.0MP12 closed guilleaer Attachment icon does not work fine in grid view 
related to defect 00187113.0MP4 closed mtaal Session variables are not set in grid mode 
related to defect 0037857 closed caristu Wrong FIC Request after selecting all records in a grid with hundreds of lines 
Issue History
2015-04-30 10:26alostaleNew Issue
2015-04-30 10:26alostaleAssigned To => platform
2015-04-30 10:26alostaleModules => Core
2015-04-30 10:26alostaleTriggers an Emergency Pack => No
2015-04-30 10:27alostaleTag Attached: Performance
2015-04-30 14:50shuehnerIssue Monitored: shuehner
2015-04-30 14:51shuehnerNote Added: 0076918
2015-05-07 12:16alostaleStatusnew => acknowledged
2015-11-11 11:34alostalePriorityurgent => high
2015-11-16 14:13caristuAssigned Toplatform => caristu
2015-11-16 14:13caristuStatusacknowledged => scheduled
2015-11-16 16:57caristuRelationship addedrelated to 0020522
2015-11-16 16:57caristuRelationship addedrelated to 0018711
2015-11-17 08:51caristuReview Assigned To => alostale
2015-11-17 08:51caristuIssue Monitored: alostale
2015-11-17 08:55hgbotCheckin
2015-11-17 08:55hgbotNote Added: 0081911
2015-11-17 08:55hgbotStatusscheduled => resolved
2015-11-17 08:55hgbotResolutionopen => fixed
2015-11-17 08:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2ecc34ec6e7d8006ef4cbfb2cee9872bbc0473c8 [^]
2015-11-23 21:17hudsonbotCheckin
2015-11-23 21:17hudsonbotNote Added: 0082245
2015-11-30 10:40alostaleNote Added: 0082463
2015-11-30 10:40alostaleStatusresolved => closed
2015-11-30 10:40alostaleFixed in Version => 3.0PR16Q1
2018-02-08 09:26caristuRelationship addedrelated to 0037857

Notes
(0076918)
shuehner   
2015-04-30 14:51   
Minor comment: on top of the reported behavior the order of the two param mode + the prvious one is swapped comparing that edit+setsession.

Harmless but not reason to hae different also
(0081911)
hgbot   
2015-11-17 08:55   
Repository: erp/devel/pi
Changeset: 2ecc34ec6e7d8006ef4cbfb2cee9872bbc0473c8
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Nov 17 08:49:16 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2ecc34ec6e7d8006ef4cbfb2cee9872bbc0473c8 [^]

fixes issue 29746: unneded FIC request on record selection in some windows

This problem happens on those windows which do not have buttons on the right side of the toolbar. The EDIT request was introduced to solve issue 0018711 in order to set the session variables in grid mode. This called was done through this.view.setContextInfo();. Then after fixing issue 0020522 the second call in SETSESSION mode was introduced.

To avoid the call in EDIT mode we have just removed the call to this.view.setContextInfo();. This way just the call in SETSESSION mode is performed.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
(0082245)
hudsonbot   
2015-11-23 21:17   
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/7b56bebaaa88 [^]
Maturity status: Test
(0082463)
alostale   
2015-11-30 10:40   
code reviewed

tested also issues 0018711 and 0020522