details: https://code.openbravo.com/erp/devel/pi/rev/ab075f83c2f8
changeset: 21396:ab075f83c2f8
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Tue Oct 29 13:05:23 2013 +0100
summary: Fixes issue 25033: Problems with personalization and grid adaptive
filtering
There was a problem when a saved view with no filter clause is applied over a
view that had an active filter clause.
Consider the following sequence of events:
- A window (i.e. Sales Order) is opened
- An initial request to the datasource before the personalized view is applied.
Suppose the datasource returns fewer than 100 records
- The personalized view is applied. As there is fewer than 100 records, the
filtering is done locally. This is wrong, because the initial dataset was built
over a filterClause, and the personalize view that is being applied does not
have a filter clause. In this case the filtering should not be done locally.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
| 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 0428e715da1a -r ab075f83c2f8
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Tue Oct 29 16:17:47 2013 +0530
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Tue Oct 29 13:05:23 2013 +0100
@@ -1047,6 +1047,11 @@
}
if (localState.noFilterClause) {
+ if (OB.Utilities.isNonEmptyString(this.filterClause)) {
+ if (this.data) {
+ this.data.forceRefresh = true;
+ }
+ }
this.filterClause = null;
if (this.view.messageBar) {
this.view.messageBar.hide();
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits