Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025765Openbravo ERPA. Platformpublic2014-02-19 11:122014-03-04 12:35
marvintm 
alostale 
immediatemajoralways
closedfixed 
5
 
3.0PR14Q23.0PR14Q2 
AugustoMauch
Core
No
0025765: Duplicated records can appear in the grid when it is refreshed
In some situations, when the grid is refreshed, records are duplicated.

This can be reproduced when the user refreshes the grid after having selected at least one record in the grid. In that case, one or more records are duplicated, and added after the current page in the grid.
- Go to the Country and Region window.
- Order the header tab by the Name column.
- Select one country ("Andorra").
- Click on the "Refresh" button in the grid toolbar.
- Scroll down until the second page is requested to the datasource. Notice that instead of receiving the second page, the first page is received again.
No tags attached.
related to defect 0025789 closed alostale Duplicated records appearing in the grid after refreshing having all the records selected 
Issue History
2014-02-19 11:12marvintmNew Issue
2014-02-19 11:12marvintmAssigned To => AugustoMauch
2014-02-19 11:12marvintmModules => Core
2014-02-19 11:12marvintmTriggers an Emergency Pack => No
2014-02-19 11:22jonalegriaesarteTarget Version => 3.0MP32
2014-02-19 11:38marvintmSeverityminor => major
2014-02-19 11:56marvintmPrioritynormal => immediate
2014-02-20 10:00AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5468#r5468
2014-02-20 10:00AugustoMauchNote Added: 0064377
2014-02-20 19:23caristuRelationship addedrelated to 0025789
2014-02-21 15:05alostaleNote Added: 0064490
2014-02-21 15:05alostaleAssigned ToAugustoMauch => alostale
2014-02-21 15:08alostaleNote Added: 0064491
2014-02-21 15:08alostaleReview Assigned To => AugustoMauch
2014-02-21 15:10hgbotCheckin
2014-02-21 15:10hgbotNote Added: 0064492
2014-02-21 15:10hgbotStatusnew => resolved
2014-02-21 15:10hgbotResolutionopen => fixed
2014-02-21 15:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b7a76254ee09b74fe47c35d159bd5e5cc490e0e5 [^]
2014-02-23 21:59hudsonbotCheckin
2014-02-23 21:59hudsonbotNote Added: 0064503
2014-03-04 12:35AugustoMauchNote Added: 0064792
2014-03-04 12:35AugustoMauchStatusresolved => closed
2014-03-04 12:35AugustoMauchFixed in Version => 3.0MP32

Notes
(0064377)
AugustoMauch   
2014-02-20 10:00   
The startRow parameter is changed here https://code.openbravo.com/erp/devel/pi/file/34fb7ad71646/modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java#l433 [^]
(0064490)
alostale   
2014-02-21 15:05   
When the grid is refreshed, viewGrid.targetRecordId is set which is placed in the context.params._targetRecordId. This parameter should not be sent when requesting next page. The code in charge of removing it, is in viewGrid.grid.getFetchRequestParams which is called from viewGrid.fetchRemoteData, the problem is the result is not correctly set back in context.params.
(0064491)
alostale   
2014-02-21 15:08   
Test plan:
-Follow steps to reproduce and check it works
-Direct navigation to another records still works:
  * opens the correct record in form view
  * when switching to grid mode the selected record is filtered
  * when the filter is cleaned up all the records appear
(0064492)
hgbot   
2014-02-21 15:10   
Repository: erp/devel/pi
Changeset: b7a76254ee09b74fe47c35d159bd5e5cc490e0e5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Feb 21 15:10:03 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b7a76254ee09b74fe47c35d159bd5e5cc490e0e5 [^]

fixed bug 25765: duplicated records can appear in the grid when it is refreshed

When the grid is refreshed, viewGrid.targetRecordId is set which is placed in the context.params._targetRecordId. This parameter should not be sent when requesting next page. The code in charge of removing it, is in viewGrid.grid.getFetchRequestParams which is called from viewGrid.fetchRemoteData, the problem is the result is not correctly set back in context.params.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0064503)
hudsonbot   
2014-02-23 21:59   
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/3c3cb97a2d10 [^]
Maturity status: Test
(0064792)
AugustoMauch   
2014-03-04 12:35   
Code reviewed and verified in pi@5e5fb94fad0b