Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0043201 | Openbravo ERP | A. Platform | public | 2020-02-12 16:55 | 2020-03-10 15:21 |
Reporter | caristu | ||||
Assigned To | caristu | ||||
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 3.0PR20Q2 | |||
Merge Request Status | |||||
Review Assigned To | alostale | ||||
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 | 0043201: Wrong information displayed in the grid after editing a child record under some circumstances | ||||
Description | Having a tab with an HQL where clause with dynamic variables, after editing a child record of that tab a DS request is fired to refresh the "parent" record. In that case, the HQL where clause is not resolved properly because the context information is not being sent in the parent refresh request. This causes the parent record not to be updated properly and also the grid to show inconsistent information (because some extra request are also being fired, see attached image) | ||||
Steps To Reproduce | 1) Apply the attached patch (hqlWhereClause.diff) which adds a "dynamic" HQL where clause into the "Imported Bank Statements" tab of the [Financial Account] window. 2) Run ant smartbuild -Dlocal=no 3) Go to the [Financial Account] window as F&B group admin 4) Select the "Caja" financial account 5) Switch to the "Imported Bank Statements" tab and create two records 6) Select one of the newly created bank statements and create a new record in the "Bank Statement Lines" for it. ERROR: The record is created but note that the parent tab is refreshed with wrong information. Also the selection is lost. 7) Refresh the "Imported bank Statements" tab to put the grid into a consistent state again 8) Edit the bank statement line created in step 6) and save. ERROR: the record is saved but note that the parent tab has been wrongly refreshed again. | ||||
Proposed Solution | a) Send the context information in the parent record refresh request so that the HQL where clause can be properly calculated b) Do not try to resolve the HQL where clause when refreshing the parent record as filtering by ID should be enough | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=14030&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=14031&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-02-12 16:55 | caristu | New Issue | |||
2020-02-12 16:55 | caristu | Assigned To | => platform | ||
2020-02-12 16:55 | caristu | File Added: MultipleDSRequest.png | |||
2020-02-12 16:55 | caristu | OBNetwork customer | => No | ||
2020-02-12 16:55 | caristu | Modules | => Core | ||
2020-02-12 16:55 | caristu | Triggers an Emergency Pack | => No | ||
2020-02-12 16:57 | caristu | File Added: hqlWhereClause.diff | |||
2020-02-12 16:57 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=20363#r20363 | ||
2020-03-03 10:07 | caristu | Assigned To | platform => caristu | ||
2020-03-03 10:07 | caristu | Review Assigned To | => alostale | ||
2020-03-03 10:08 | caristu | Note Added: 0118285 | |||
2020-03-06 14:59 | hgbot | Checkin | |||
2020-03-06 14:59 | hgbot | Note Added: 0118404 | |||
2020-03-06 14:59 | hgbot | Status | new => resolved | ||
2020-03-06 14:59 | hgbot | Resolution | open => fixed | ||
2020-03-06 14:59 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/eb2944131bb41e1cbb6a26111336028dce086f69 [^] | ||
2020-03-10 15:21 | alostale | Status | resolved => closed | ||
2020-03-10 15:21 | alostale | Fixed in Version | => 3.0PR20Q2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|