Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037181Openbravo ERPA. Platformpublic2017-10-27 13:392018-01-03 12:38
JONHM 
caristu 
highminoralways
closedfixed 
5
 
3.0PR18Q1 
alostale
Core
No
0037181: Wrong behavior when filtering in tree grid view and pressing 'Enter' key to confirm the filter
The record disappears on the grid tree view when applying a filter in a drop down and pressing the 'Enter' key to confirm.
The issue can be also reproduced when saving this view as default. In this case, the previously saved filter is not shown on the field.
1) Open "Organization" window and switch to 'tree grid view' (press the button on the toolbar)
2) Filter by 'Organization Type' and set the text as "organization". Then press 'Enter' key (do not press any other key)
3) Save that view and set it as default
-> You can see the obtained record disappearing when clicking with the mouse to save the view

4) Close that window and reopen it (in order to load the previously saved view).
5) Now set the filter as 'Legal with accounting' on 'Organization Type' column.
-> It shows the message 'The applied filter resulted in 0 results' and the filter is automatically set with this text '~organization and 1'

Note: the issue can be only reproduced if you press 'Enter' key when setting the filter, and using columns of 'drop down' type. See the attached video for more information.
No tags attached.
related to defect 0025935 closed AugustoMauch JS Error when opening TreeGrid selector 
related to defect 0037255 closed caristu Wrong behavior when filtering in tree grid view of a child tab and pressing 'Enter' key to confirm the filter 
? treeGridView.mp4 (1,868,181) 2017-10-30 18:28
https://issues.openbravo.com/file_download.php?file_id=11253&type=bug
Issue History
2017-10-27 13:39JONHMNew Issue
2017-10-27 13:39JONHMAssigned To => platform
2017-10-27 13:39JONHMFile Added: treeGridView.mp4
2017-10-27 13:39JONHMModules => Core
2017-10-27 13:39JONHMResolution time => 1510873200
2017-10-27 13:39JONHMTriggers an Emergency Pack => No
2017-10-30 18:14JONHMResolution time1510873200 =>
2017-10-30 18:14JONHMSeveritymajor => minor
2017-10-30 18:14JONHMSummaryWrong behavior when filtering in tree grid view => Wrong behavior when filtering in tree grid view and pressing 'Enter' key
2017-10-30 18:14JONHMDescription Updatedbug_revision_view_page.php?rev_id=16201#r16201
2017-10-30 18:14JONHMSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16203#r16203
2017-10-30 18:14JONHMFile Deleted: treeGridView.mp4
2017-10-30 18:15JONHMFile Added: treeGridView.mp4
2017-10-30 18:18JONHMSummaryWrong behavior when filtering in tree grid view and pressing 'Enter' key => Wrong behavior when filtering in tree grid view and pressing 'Enter' key to confirm the filter
2017-10-30 18:28JONHMFile Deleted: treeGridView.mp4
2017-10-30 18:28JONHMFile Added: treeGridView.mp4
2017-10-30 19:01caristuAssigned Toplatform => caristu
2017-10-30 19:01caristuStatusnew => acknowledged
2017-10-30 19:01caristuStatusacknowledged => scheduled
2017-10-30 19:01caristuRelationship addedrelated to 0022098
2017-10-31 12:21hgbotCheckin
2017-10-31 12:21hgbotNote Added: 0100189
2017-10-31 12:21hgbotStatusscheduled => resolved
2017-10-31 12:21hgbotResolutionopen => fixed
2017-10-31 12:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/988d61d0fb777f8cebcaea555f99d184f9262381 [^]
2017-10-31 12:22caristuReview Assigned To => alostale
2017-10-31 12:33hgbotCheckin
2017-10-31 12:33hgbotNote Added: 0100190
2017-10-31 12:34caristuRelationship deletedrelated to 0022098
2017-10-31 12:35caristuRelationship addedrelated to 0025935
2017-11-03 09:08alostaleNote Added: 0100237
2017-11-03 09:08alostaleStatusresolved => closed
2017-11-03 09:08alostaleFixed in Version => 3.0PR18Q1
2017-11-08 08:45caristuIssue cloned0037255
2017-11-08 08:47caristuRelationship addedrelated to 0037255
2018-01-03 12:38hudsonbotCheckin
2018-01-03 12:38hudsonbotNote Added: 0101364
2018-01-03 12:38hudsonbotCheckin
2018-01-03 12:38hudsonbotNote Added: 0101365

Notes
(0100189)
hgbot   
2017-10-31 12:21   
Repository: erp/devel/pi
Changeset: 988d61d0fb777f8cebcaea555f99d184f9262381
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Oct 31 11:34:30 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/988d61d0fb777f8cebcaea555f99d184f9262381 [^]

fixes bug 37181: Tree is closed after pressing 'Enter' key to filter

  The opened nodes are reset after submitting a new filter. The problem here was that they were being reset on every filter submit. Thus, when the criteria did not change between two filter requests, the tree nodes were closed but never reopened as the filtering was not being applied.

  Now this problem has been solved by resetting the opened nodes just when the filter criteria of the tree grid indeed changes.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
---
(0100190)
hgbot   
2017-10-31 12:33   
Repository: erp/devel/pi
Changeset: bf1208f4e87cacf6019ced5381557373466d572c
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Oct 31 12:32:46 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bf1208f4e87cacf6019ced5381557373466d572c [^]

related to bug 37181: update comment

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
---
(0100237)
alostale   
2017-11-03 09:08   
reviewed + tested
(0101364)
hudsonbot   
2018-01-03 12: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/c81e0d3cbab5 [^]
Maturity status: Test
(0101365)
hudsonbot   
2018-01-03 12: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/c81e0d3cbab5 [^]
Maturity status: Test