Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032400Openbravo ERPB. User interfacepublic2016-03-03 14:022016-03-08 10:00
JONHM 
inigosanchez 
immediateminoralways
closedfixed 
5
 
3.0PR15Q4.53.0PR15Q4.5 
alostale
Core
Production - Confirmed Stable
3.0PR15Q3
No
0032400: cannot filter grid when it is grouped by a column
We cannot filter results after grouping by date in Multiphase Project view. We got some error on Chrome's debugging window:
"Uncaught TypeError: this.data.willFetchData is not a function"
"isc.OBViewGrid.addProperties.handleFilterEditorSubmit"
1) Enter some data with dates in "Multiphase Project" view
2) Group by date column
3) Filter by some column (for example, name)

The filter doesn't work

This is reproducible for any window
No tags attached.
blocks defect 00323963.0PR16Q2 closed inigosanchez cannot filter grid when it is grouped by a column 
Issue History
2016-03-03 17:24alostaleTypedefect => backport
2016-03-03 17:24alostaleTarget Version3.0PR16Q2 => 3.0PR15Q4.5
2016-03-07 15:49inigosanchezIssue Monitored: alostale
2016-03-07 15:51hgbotCheckin
2016-03-07 15:51hgbotNote Added: 0084783
2016-03-07 15:51hgbotStatusscheduled => resolved
2016-03-07 15:51hgbotResolutionopen => fixed
2016-03-07 15:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4.5/rev/43ba3022b41f5b9dc0526b1c9e8edb2c1e9e4d7d [^]
2016-03-07 15:52inigosanchezReview Assigned To => alostale
2016-03-08 09:53alostaleAssigned Toplatform => inigosanchez
2016-03-08 10:00alostaleNote Added: 0084810
2016-03-08 10:00alostaleStatusresolved => closed
2016-03-08 10:00alostaleFixed in Version => 3.0PR15Q4.5

Notes
(0084783)
hgbot   
2016-03-07 15:51   
Repository: erp/backports/3.0PR15Q4.5
Changeset: 43ba3022b41f5b9dc0526b1c9e8edb2c1e9e4d7d
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Mon Mar 07 15:51:16 2016 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.5/rev/43ba3022b41f5b9dc0526b1c9e8edb2c1e9e4d7d [^]

Fixes issue 32400: cannot filter grid when it is grouped by a column.

Having a column grouped, if a filter was applied in a grid, it was not
possible to apply it.A js error was thrown:
Uncaught TypeError: this.data.willFetchData is not a function.

The problem was in:"this.data.willFetchData(....))" statement which
incorrectly assumed this.data to be an object and willFetchData a function
within it. This is not true when in this situation where this.data is a
Tree class.

It has been fixed by taking into account this case by checking that "this.data" defines the
function.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0084810)
alostale   
2016-03-08 10:00   
code reviewed

tested:
* grouping by different fields (date, numeric, FK) filters work in grouped column as well as in other ones
* related issues (0029896 and 0031187) are still not reproducible