Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0024692 | Openbravo ERP | A. Platform | public | 2013-09-04 17:10 | 2013-10-03 18:19 |
|
Reporter | caristu | |
Assigned To | shankarb | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP28 | Fixed in Version | 3.0MP28 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | OBPS |
Web browser | Google Chrome |
Modules | Core |
Support ticket | 21581 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0024692: Double request to the datasource is done when a numeric field is in the first position of the grid |
Description | A double request is done to the datasource if we configure a numeric field as the first in the grid. This causes that the target record is not selected when navigating to that window. This sometimes causes that the child tab information doesn't appear. |
Steps To Reproduce | 1) Go to the [Product] window and display the Weight field (the related column uses a numeric reference)
2) Place it in the first position of the grid
3) Go to the [Purchase/Sales Order] window and create a new order with at least one line.
4) Navigate from the [Lines] tab to the [Product] window |
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0047941 | | closed | AugustoMauch | Issue in creating a order line |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-09-04 17:10 | caristu | New Issue | |
2013-09-04 17:10 | caristu | Assigned To | => AugustoMauch |
2013-09-04 17:10 | caristu | Web browser | => Google Chrome |
2013-09-04 17:10 | caristu | Modules | => Core |
2013-09-04 17:10 | caristu | OBNetwork customer | => Yes |
2013-09-04 17:10 | caristu | Support ticket | => 21581 |
2013-09-04 17:10 | caristu | Triggers an Emergency Pack | => No |
2013-09-04 17:10 | caristu | Issue Monitored: networkb | |
2013-09-04 17:10 | caristu | Web browser | Google Chrome => Google Chrome |
2013-09-04 17:10 | caristu | Summary | Double request to the datasource when a numeric field is the first in the grid => Double request to the datasource is made when a numeric field is the first in the grid |
2013-09-04 17:12 | caristu | Web browser | Google Chrome => Google Chrome |
2013-09-04 17:12 | caristu | Summary | Double request to the datasource is made when a numeric field is the first in the grid => Double request to the datasource is done when a numeric field is in the first position of the grid |
2013-09-10 08:54 | shankarb | Assigned To | AugustoMauch => shankarb |
2013-09-16 07:56 | shankarb | Status | new => scheduled |
2013-09-16 07:56 | shankarb | fix_in_branch | => pi |
2013-09-24 09:40 | shankarb | Review Assigned To | => AugustoMauch |
2013-09-24 09:40 | shankarb | Web browser | Google Chrome => Google Chrome |
2013-09-24 09:40 | shankarb | fix_in_branch | pi => |
2013-09-24 09:40 | shankarb | Issue Monitored: AugustoMauch | |
2013-09-24 09:41 | hgbot | Checkin | |
2013-09-24 09:41 | hgbot | Note Added: 0061363 | |
2013-09-24 09:41 | hgbot | Status | scheduled => resolved |
2013-09-24 09:41 | hgbot | Resolution | open => fixed |
2013-09-24 09:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/2bbac483aff8d1414f4017a2c89ae839ad292384 [^] |
2013-09-24 20:10 | hudsonbot | Checkin | |
2013-09-24 20:10 | hudsonbot | Note Added: 0061377 | |
2013-09-25 08:57 | alostale | Note Added: 0061379 | |
2013-09-25 08:57 | alostale | Status | resolved => new |
2013-09-25 08:57 | alostale | Resolution | fixed => open |
2013-09-25 08:59 | alostale | Note Edited: 0061379 | bug_revision_view_page.php?bugnote_id=0061379#r5047 |
2013-09-25 11:18 | hgbot | Checkin | |
2013-09-25 11:18 | hgbot | Note Added: 0061388 | |
2013-09-25 11:18 | hgbot | Status | new => resolved |
2013-09-25 11:18 | hgbot | Resolution | open => fixed |
2013-09-25 11:18 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/2bbac483aff8d1414f4017a2c89ae839ad292384 [^] => http://code.openbravo.com/erp/devel/pi/rev/327a7d8af6cee2d1d0abcbf50854380fee17b790 [^] |
2013-09-25 19:58 | hudsonbot | Checkin | |
2013-09-25 19:58 | hudsonbot | Note Added: 0061396 | |
2013-09-27 10:09 | alostale | Review Assigned To | AugustoMauch => alostale |
2013-09-27 11:51 | alostale | Note Added: 0061442 | |
2013-09-27 11:51 | alostale | Status | resolved => closed |
2013-09-27 11:51 | alostale | Fixed in Version | => 3.0MP28 |
2013-10-03 18:19 | alostale | Tag Attached: Performance | |
2021-12-01 00:22 | AugustoMauch | Relationship added | related to 0047941 |
Notes |
|
(0061363)
|
hgbot
|
2013-09-24 09:41
|
|
Repository: erp/devel/pi
Changeset: 2bbac483aff8d1414f4017a2c89ae839ad292384
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Sep 24 13:08:10 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/2bbac483aff8d1414f4017a2c89ae839ad292384 [^]
Fixes Issue 0024692: Double request to the datasource is done when a numeric field is in the first position of the grid
In numeric fields, then in the blur event, the filters are applied again if its not applied through performGridAction.
But this was resulting in double datasource calls, if the numeric field is the first field of the grid.
Added validation to performGridAction only if the numeric field is not the first field of the grid.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
---
|
|
|
|
|
|
(0061379)
|
alostale
|
2013-09-25 08:57
(edited on: 2013-09-25 08:59) |
|
Reopening because it causes a regression: blur event in numeric filter fields doesn't apply the filter.
Test cases:
-Following steps to reproduce -> FIXED
-Filtering by numeric field having it in first position in grid pressing enter after setting the number -> WORKS
-Filtering by numeric field having it in other grid position pressing enter after setting the number -> WORKS
-Filter by numeric field in any grid position by entering the number and pressing tab to move to next filter field -> DOES NOT APPLY FILTER: REGRESSION
Note current fix is preventing datasource call in numeric filter fields in ALL cases:
this.form.getFocusItem() === this
always evaluates true in the blur method
|
|
|
(0061388)
|
hgbot
|
2013-09-25 11:18
|
|
Repository: erp/devel/pi
Changeset: 327a7d8af6cee2d1d0abcbf50854380fee17b790
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Wed Sep 25 13:28:36 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/327a7d8af6cee2d1d0abcbf50854380fee17b790 [^]
Fixes Issue 0024692: Double request to the datasource is done when a numeric field is in the first position of the grid
The filter in blur event needs to be applied only if the value is not undefined.
In case there is value in the filter and then the value is cleared,
still the filter will be applied because the value returned will be null and not undefined.
Also the additional datasource call will be avoided as in that case, the value is undefined.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
---
|
|
|
|
|
|
|
Code reviewed and tested according to tests cases explained in note above |
|