Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0031256 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | minor | always | 2015-10-20 12:53 | 2015-10-27 10:34 | |||
Reporter | plujan | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR15Q3.3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | bcb35511b17d | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q3.3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | main | SCM revision | ||||||
Review Assigned To | AugustoMauch | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Production - QA Approved | |||||||
Regression date | ||||||||
Regression introduced in release | 3.0PR15Q3 | |||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0031256: [PR15Q4] Lazy filtering does not work when filtering the first time | |||||||
Description | If the first action taken on a grid is to change a filter, applying the filtering does nothing. If first the records are shown, it works as expected. | |||||||
Steps To Reproduce | 0. In Grid Configuration set Preference window to do Lazy Filtering on Grid 1. As System Administrator, go to Preference window 2. Click the check button to show the data. It shows the data. 3. Close the window 4. Reopen the Preference window 5. Seek for a preference on the list and check it to have the filter active 6. Click the check button to show the data. It does not work. -> js error can be seen in developers tool: Uncaught TypeError: this.data.willFetchData is not a function isc.OBViewGrid.addProperties.handleFilterEditorSubmit @ abac3df8aa23bfef1d3ab745040cf492.js:2087 7. Refresh the window, the data is loaded unfiltered. Repeat steps 5 and 6 and check that now it works. A video showing the behaviour: https://drive.google.com/open?id=0B6HEkyuFoid8SnJJaWpLY0MzQXc [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0081329) hgbot (developer) 2015-10-27 09:21 |
Repository: erp/backports/3.0PR15Q3.3 Changeset: bcb35511b17d949b7a1f93d8f5d7e4d09f959e81 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Tue Oct 27 08:28:58 2015 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.3/rev/bcb35511b17d949b7a1f93d8f5d7e4d09f959e81 [^] fixed bug 31256: Lazy filtering does not work when filtering the first time Having lazy filtering configured, if a filter was applied in a grid as first action, 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 "if (this.data.willFetchData(this.convertCriteria(criteria)))" 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 an array. It has been fixed by taking into account this case by checking wether this.data is an array. --- M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js --- |
(0081338) AugustoMauch (administrator) 2015-10-27 10:34 |
Code reviewed and verified in [1]@bcb35511b17d [1] https://code.openbravo.com/erp/backports/3.0PR15Q3.3 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2015-10-27 07:52 | alostale | Type | defect => backport |
2015-10-27 07:52 | alostale | Target Version | => 3.0PR15Q3.3 |
2015-10-27 08:38 | alostale | Review Assigned To | caristu => AugustoMauch |
2015-10-27 09:21 | hgbot | Checkin | |
2015-10-27 09:21 | hgbot | Note Added: 0081329 | |
2015-10-27 09:21 | hgbot | Status | scheduled => resolved |
2015-10-27 09:21 | hgbot | Resolution | open => fixed |
2015-10-27 09:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR15Q3.3/rev/bcb35511b17d949b7a1f93d8f5d7e4d09f959e81 [^] |
2015-10-27 10:34 | AugustoMauch | Note Added: 0081338 | |
2015-10-27 10:34 | AugustoMauch | Status | resolved => closed |
2015-10-27 10:34 | AugustoMauch | Fixed in Version | => 3.0PR15Q3.3 |
Copyright © 2000 - 2009 MantisBT Group |