details:   https://code.openbravo.com/erp/devel/pi/rev/ebea3541b581
changeset: 18203:ebea3541b581
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Thu Oct 11 17:36:43 2012 +0200
summary:   Fixes issue 21910: When a widget is opened in a window it shows all 
its records

This issue was caused by the fix of the issue 16622. In that issue the 
ReadOnlyDataSourceServeld was changed so that it kept count of the number of 
records if the NOCOUNT parameter was set to 'false', as it was done with other 
datasources. In this case, in order not to break existing calls to the 
datasource, the count will only be prevented if the parameter is set to 'true', 
so if the parameter does not have any value (as it is in this scenario of the 
issue), the count will be done.

diffstat:

 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
 |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 3a71027b0600 -r ebea3541b581 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
--- 
a/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
      Thu Oct 11 16:59:59 2012 +0200
+++ 
b/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
      Thu Oct 11 17:36:43 2012 +0200
@@ -63,8 +63,7 @@
     if (endRowStr != null) {
       doCount = true;
     }
-    boolean preventCountOperation = 
!parameters.containsKey(JsonConstants.NOCOUNT_PARAMETER)
-        || "true".equals(parameters.get(JsonConstants.NOCOUNT_PARAMETER));
+    boolean preventCountOperation = 
"true".equals(parameters.get(JsonConstants.NOCOUNT_PARAMETER));
 
     final List<JSONObject> jsonObjects = fetchJSONObject(parameters);
 

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to