Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033792Openbravo ERPA. Platformpublic2016-08-24 13:032016-12-16 18:39
caristu 
inigosanchez 
normalmajoralways
closedfixed 
5
 
3.0PR17Q1 
caristu
Core
No
0033792: In P&E windows, filter drop down options disappear under some circumstances
In P&E windows, filter drop down options disappear after removing an existing filter, having selected records.
0) Go to the [Return From Customer] window and create a new return with one line at least.
1) Book the created record.
2) Go to the [Return Material Receipt] window.
3) Create a new record in the header and click in the P&E lines button.
4) Select one record and push "Done" button.
5) Select the same record in the header and click in the P&E lines button again.
6) Choice an option in the Product filter drop-down.
7) Click on the funnel to remove the filter.
8) Click again on the Product filter drop-down, notice that no results are returned.
The request fired on step 8) is not correct. It is causing the generation of a wrong query in the datasource (the main alias is changed, see attached).

The request must be correct, it should be decided if:

a) The selected records are included in the request fired by the filter drop-down
b) The _OrExpression parameter should be removed from this kind of requests (this parameter is causing the change in the main alias name in the backend)

No tags attached.
txt queryGood.txt (4,689) 2016-08-24 13:04
https://issues.openbravo.com/file_download.php?file_id=9749&type=bug
txt queryBad.txt (4,681) 2016-08-24 13:04
https://issues.openbravo.com/file_download.php?file_id=9750&type=bug
Issue History
2016-08-24 13:03caristuNew Issue
2016-08-24 13:03caristuAssigned To => platform
2016-08-24 13:03caristuModules => Core
2016-08-24 13:03caristuTriggers an Emergency Pack => No
2016-08-24 13:04caristuFile Added: queryGood.txt
2016-08-24 13:04caristuFile Added: queryBad.txt
2016-08-24 13:05caristuDescription Updatedbug_revision_view_page.php?rev_id=12892#r12892
2016-08-24 13:05caristuDescription Updatedbug_revision_view_page.php?rev_id=12893#r12893
2016-10-24 16:01inigosanchezAssigned Toplatform => inigosanchez
2016-10-24 16:01inigosanchezStatusnew => scheduled
2016-10-24 17:01inigosanchezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=13462#r13462
2016-10-24 17:01inigosanchezProposed Solution updated
2016-11-22 10:53inigosanchezNote Added: 0091730
2016-11-23 15:36inigosanchezReview Assigned To => caristu
2016-11-23 15:39hgbotCheckin
2016-11-23 15:39hgbotNote Added: 0091765
2016-11-23 15:39hgbotStatusscheduled => resolved
2016-11-23 15:39hgbotResolutionopen => fixed
2016-11-23 15:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/de50252ad892299861a3120e97502cd74e96c4d9 [^]
2016-11-23 15:42hgbotCheckin
2016-11-23 15:42hgbotNote Added: 0091766
2016-11-25 10:02hgbotCheckin
2016-11-25 10:02hgbotNote Added: 0091818
2016-11-25 10:29inigosanchezNote Added: 0091819
2016-11-25 11:47caristuNote Added: 0091833
2016-11-25 11:47caristuStatusresolved => closed
2016-11-25 11:47caristuFixed in Version => 3.0PR17Q1
2016-12-16 18:38hudsonbotCheckin
2016-12-16 18:38hudsonbotNote Added: 0092651
2016-12-16 18:38hudsonbotCheckin
2016-12-16 18:38hudsonbotNote Added: 0092652
2016-12-16 18:39hudsonbotCheckin
2016-12-16 18:39hudsonbotNote Added: 0092659

Notes
(0091730)
inigosanchez   
2016-11-22 10:53   
Testcases (Tested in P&E Lines of Return Material Receipt window):
-Open the filter dropdown of the Product field with a value selected in Product field (Product ==Cerveza Ale 0,5L).
-Open the filter dropdown of the Product field with a value selected in other field without filter dropdown (Line No. ==10).
-Open the filter dropdown of the Product field with a value selected in other field with filter dropdown (Storage Bin ==RN-Dev).

Three cases should displayed filter dropdown options.
(0091765)
hgbot   
2016-11-23 15:39   
Repository: erp/devel/pi
Changeset: de50252ad892299861a3120e97502cd74e96c4d9
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Wed Nov 23 15:32:15 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/de50252ad892299861a3120e97502cd74e96c4d9 [^]

Fixed issue 33792:In P&E windows, filter drop down options disappear sometimes

The problem was in P&E windows using filter dropdown. First time all were working fine but the second time, when filter dropdown was open and a filter option was previously selected, filter dropdown options were disappear. To reproduce this problem it was necessary to have a selected record in P&E.

When filter dropdown options were disappear, the request had some extra parameters. This extra parameters were a problem in order to build the query properly. These were the extra parameters:
    _constructor:AdvancedCriteria
    _OrExpression:true
    operator:or

At the end these parameters build a bad query because main alias was not managed properly in the server side. As a result of the operator parameter (operator:or) main alias was not use properly. The query was built poorly due to the aliases.

To solve the problem now, when cleanCriteria function is executed, it is also executed cleanOrCriterion function in order to clean criteria properly.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
(0091766)
hgbot   
2016-11-23 15:42   
Repository: erp/devel/pi
Changeset: ce7a1af484d7d12db3aea516d73d526ec63dd02d
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Wed Nov 23 15:41:24 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ce7a1af484d7d12db3aea516d73d526ec63dd02d [^]

Related with issue 33792: Applied JSBeautifier properly

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
(0091818)
hgbot   
2016-11-25 10:02   
Repository: erp/devel/pi
Changeset: 5befe78d2de5f63abf1970a1bc7d679011d7e3e5
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Nov 25 10:01:39 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5befe78d2de5f63abf1970a1bc7d679011d7e3e5 [^]

Related with issue 33792: Improve a comment and update copyright

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
(0091819)
inigosanchez   
2016-11-25 10:29   
A test suite in testlink is created. See tests in Platform > Summary, Grouping and Filter > Filter > [FPE] Filter dropdown options in P&E.
(0091833)
caristu   
2016-11-25 11:47   
Code reviewed + testing OK: filter drop-down options are correctly displayed.
(0092651)
hudsonbot   
2016-12-16 18:38   
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/dc8bf00badd0 [^]
Maturity status: Test
(0092652)
hudsonbot   
2016-12-16 18:38   
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/dc8bf00badd0 [^]
Maturity status: Test
(0092659)
hudsonbot   
2016-12-16 18:39   
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/dc8bf00badd0 [^]
Maturity status: Test