Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0019564 | Openbravo ERP | A. Platform | public | 2012-01-25 21:09 | 2012-01-28 04:10 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP8 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0019564: Selected record is persisted in grid state, resulting in selected record when grid is re-opened with empty child tab |
Description | The grid states is persisted to often, everytime when the viewstate of a grid changes. This is often, when a sort happens, when a record is selected etc.
This is caused by changes for this issue:
https://issues.openbravo.com/view.php?id=19422 [^]
Particurarly this change:
https://code.openbravo.com/erp/devel/pi/diff/fe6c4992e9bc/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js#l1.44 [^]
The selected record state should not be persisted, and persisting of state should only happen in specific cases (reorder, hide/show and resize of fields). |
Steps To Reproduce | Choose a window with a child tab, open the chrome dev console.
Open the window
select a record,
check the network tab in the google dev console, a post is done everytime a record is selected. This post stores the grid state.
Then close and re-open the window, the record in the grid is re-selected but the child tab will show no record selected, See the attached image. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0019422 | 3.0MP8 | closed | mtaal | Grid personalization not stored |
|
Attached Files | Screenshot at 2012-01-25 21:08:48.png (52,718) 2012-01-25 21:09 https://issues.openbravo.com/file_download.php?file_id=4930&type=bug

|
|
Issue History |
Date Modified | Username | Field | Change |
2012-01-25 21:09 | mtaal | New Issue | |
2012-01-25 21:09 | mtaal | Assigned To | => mtaal |
2012-01-25 21:09 | mtaal | File Added: Screenshot at 2012-01-25 21:08:48.png | |
2012-01-25 21:09 | mtaal | Modules | => Core |
2012-01-25 21:09 | mtaal | OBNetwork customer | => No |
2012-01-25 21:44 | mtaal | Relationship added | related to 0019422 |
2012-01-25 21:44 | hgbot | Checkin | |
2012-01-25 21:44 | hgbot | Note Added: 0044591 | |
2012-01-25 21:44 | hgbot | Status | new => resolved |
2012-01-25 21:44 | hgbot | Resolution | open => fixed |
2012-01-25 21:44 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1d21ce53b5f69461cf9d3062f7e33ac293b605af [^] |
2012-01-26 15:28 | hgbot | Checkin | |
2012-01-26 15:28 | hgbot | Note Added: 0044612 | |
2012-01-26 16:24 | iperdomo | Note Added: 0044616 | |
2012-01-26 16:24 | iperdomo | Status | resolved => closed |
2012-01-28 04:10 | hudsonbot | Checkin | |
2012-01-28 04:10 | hudsonbot | Note Added: 0044663 | |
2012-01-28 04:10 | hudsonbot | Checkin | |
2012-01-28 04:10 | hudsonbot | Note Added: 0044669 | |
Notes |
|
(0044591)
|
hgbot
|
2012-01-25 21:44
|
|
Repository: erp/devel/pi
Changeset: 1d21ce53b5f69461cf9d3062f7e33ac293b605af
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Jan 25 21:43:38 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1d21ce53b5f69461cf9d3062f7e33ac293b605af [^]
Fixes issue 19564: Selected record is persisted in grid state, resulting in selected record when grid is re-opened with empty child tab
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
---
|
|
|
(0044612)
|
hgbot
|
2012-01-26 15:28
|
|
Repository: erp/devel/pi
Changeset: 02169171a052c892bc071081df418d1de1b24b67
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Jan 26 15:28:03 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/02169171a052c892bc071081df418d1de1b24b67 [^]
Related to issue 19564: Selected record is persisted in grid state, resulting in selected record when grid is re-opened with empty child tab
Moved if statement inside method
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
---
|
|
|
|
* Code review and proposed the changes in changeset 02169171a052
* Tested on pi @ rev 02169171a052
* Shown some hidden column in grid, resized columns width
* Checked that the selected record is not in the request payload
* Closed the window, reopen again and widths and shown columns are still there |
|
|
|
|
|
|
|