Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028386Openbravo ERPA. Platformpublic2014-12-11 13:432014-12-30 23:28
inigosanchez 
alostale 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q1 
dbaz
Core
Packaging and release
2014-07-14
pi
https://code.openbravo.com/erp/devel/pi/rev/fab9b7248bbb [^]
No
0028386: FK filter dropdown show only previously selected elements when it is reopened
Selectors are not filtering properly when collapsed and reopen the dropdown.
1) Go to the Sales order window and clear filters.
2) Open dropdown and select filter: F&B Spain - Region Sur.
3) Then, collapsed and reopen dropdown. Realize that you can not see the other organizations to filtering.
4) Now, blur the filter and select "Document No" and realize that a reload is done. No select any filter.
5) Reopen organization dropdown and you can see all the organizations.

http://screencast.com/t/39zGXqjaKGUH [^]
No tags attached.
related to defect 0026700 closed shankarb Wrong request after filtering in a field with combo and do blur in other field in pick and edit windows 
caused by design defect 0025211 closed AugustoMauch Filter by selected value in FK uses identifier instead of ID 
related to defect 0028388 closed alostale Unexpected behavior after reopen "Transaction Document" dropdown selector with selected filter. 
Issue History
2014-12-11 13:43inigosanchezNew Issue
2014-12-11 13:43inigosanchezAssigned To => alostale
2014-12-11 13:43inigosanchezModules => Core
2014-12-11 13:43inigosanchezRegression date => 2014-07-14
2014-12-11 13:43inigosanchezRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/fab9b7248bbb [^]
2014-12-11 13:43inigosanchezTriggers an Emergency Pack => No
2014-12-12 15:28alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7269#r7269
2014-12-12 15:29alostaleNote Added: 0072458
2014-12-12 15:40alostaleRelationship addedrelated to 0028388
2014-12-16 08:23alostaleRelationship addedcaused by 0025211
2014-12-16 08:24alostaleRegression level => Packaging and release
2014-12-16 08:24alostaleRegression introduced in release => pi
2014-12-16 10:05alostaleRelationship addedrelated to 0026700
2014-12-16 10:08alostaleNote Edited: 0072458bug_revision_view_page.php?bugnote_id=0072458#r7275
2014-12-16 14:51alostaleReview Assigned To => dbaz
2014-12-16 14:51alostaleSummarySelectors are not filtering properly when collapsed and reopen the dropdown. => FK filter dropdown show only previously selected elements when it is reopened
2014-12-16 14:58hgbotCheckin
2014-12-16 14:58hgbotNote Added: 0072553
2014-12-16 14:58hgbotStatusnew => resolved
2014-12-16 14:58hgbotResolutionopen => fixed
2014-12-16 14:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c6764c78201bd1efd5bcf503561460b3bdf12e40 [^]
2014-12-16 15:00alostaleNote Added: 0072555
2014-12-17 13:19dbazNote Added: 0072635
2014-12-17 13:19dbazStatusresolved => new
2014-12-17 13:19dbazResolutionfixed => open
2014-12-17 17:15hgbotCheckin
2014-12-17 17:15hgbotNote Added: 0072660
2014-12-17 17:15hgbotStatusnew => resolved
2014-12-17 17:15hgbotResolutionopen => fixed
2014-12-17 17:15hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/c6764c78201bd1efd5bcf503561460b3bdf12e40 [^] => http://code.openbravo.com/erp/devel/pi/rev/41237421d0722987b59c0b22193f363fa6c4ae44 [^]
2014-12-22 10:40dbazNote Added: 0072757
2014-12-22 10:40dbazStatusresolved => closed
2014-12-22 10:40dbazFixed in Version => 3.0PR15Q4
2014-12-23 15:53dbazFixed in Version3.0PR15Q4 => 3.0PR15Q1
2014-12-24 11:09hgbotCheckin
2014-12-24 11:09hgbotNote Added: 0072812
2014-12-30 23:27hudsonbotCheckin
2014-12-30 23:27hudsonbotNote Added: 0073222
2014-12-30 23:28hudsonbotCheckin
2014-12-30 23:28hudsonbotNote Added: 0073237

Notes
(0072458)
alostale   
2014-12-12 15:29   
(edited on: 2014-12-16 10:08)
In the reload of step 4, filter criteria is changed from filtering by ID to identifier iEquals

(0072553)
hgbot   
2014-12-16 14:58   
Repository: erp/devel/pi
Changeset: c6764c78201bd1efd5bcf503561460b3bdf12e40
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Dec 16 14:57:28 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c6764c78201bd1efd5bcf503561460b3bdf12e40 [^]

fixed bug 28386: FK filter dropdown hides elements when it's reopened

  When a FK filter drop down was reopened after having selected an element, it
  only displayed that element in the list.

  Few things have been fixed:
    * When requesting datasource for FK drop down, the same criteria used in the
      grid is used, but removing that drop down criterion. This was not properly
      done for direct FK selection
    * == element before the identifier was some times removed
    * When reopening a drop down having an element selected, the criteria was changed
      from equals with FK value to iEquals with identifier value

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
(0072555)
alostale   
2014-12-16 15:00   
Tested with different filter combinations: single item selected, multiple items, in one or many FK filters both in standard and P&E windows
(0072635)
dbaz   
2014-12-17 13:19   
In "Sales Order" window using the mouse:
* Open the "Business Partner" dropdown list
* Select "F&B España - Región Sur"
* Close the combo
* Open the combo again. Notice that the "F&B España - Región Sur" item is selected (that's ok)
* Close the combo
* Open the combo again. Notice that the "F&B España - Región Sur" item is NOT selected (that's wrong)

Tested with Chrome and Firefox
(0072660)
hgbot   
2014-12-17 17:15   
Repository: erp/devel/pi
Changeset: 41237421d0722987b59c0b22193f363fa6c4ae44
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Dec 17 17:14:25 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/41237421d0722987b59c0b22193f363fa6c4ae44 [^]

fixed bug 28386: keep selected item when reopening FK drop down

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
(0072757)
dbaz   
2014-12-22 10:40   
Fixed at reviewed @ changeset 25583 - bd07f4b5032c
(0072812)
hgbot   
2014-12-24 11:09   
Repository: tools/automation/int
Changeset: 335263f89e3e4b98cfea556c6de332082322ec42
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Dec 19 15:27:46 2014 +0100
URL: http://code.openbravo.com/tools/automation/int/rev/335263f89e3e4b98cfea556c6de332082322ec42 [^]

related to bug 28386: FK filter dropdown show only previously selected elements

  added selenium test case

---
M src-test/com/openbravo/test/integration/erp/modules/client/application/testsuites/standardview/grid/GridSuite.java
M src-test/com/openbravo/test/integration/erp/modules/client/application/testsuites/standardview/grid/build.xml
A src-test/com/openbravo/test/integration/erp/modules/client/application/testsuites/standardview/grid/GRD0210_ReopenFilterDropDown.java
---
(0073222)
hudsonbot   
2014-12-30 23:27   
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/6525fe229e06 [^]
Maturity status: Test
(0073237)
hudsonbot   
2014-12-30 23:28   
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/6525fe229e06 [^]
Maturity status: Test