details:   /erp/devel/pi/rev/3ce547e91bcc
changeset: 12040:3ce547e91bcc
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Fri May 06 16:46:26 2011 +0200
summary:   Solved typo, Fixes issue 16920: Notes should be in descending order: 
most recent appear on top

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
 |  2 +-
 
modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
            |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 44bf1c3fcfac -r 3ce547e91bcc 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
    Fri May 06 16:39:21 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
    Fri May 06 16:46:26 2011 +0200
@@ -266,7 +266,7 @@
                     value : view.viewGrid.getSelectedRecord().id
                   });
 
-                  criteria[OB.Constants.ORDERBY_PARAMETER] = 'updated desc';
+                  criteria[OB.Constants.ORDERBY_PARAMETER] = '-updated';
                 }
                 return criteria;
 
diff -r 44bf1c3fcfac -r 3ce547e91bcc 
modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
--- 
a/modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
       Fri May 06 16:39:21 2011 +0200
+++ 
b/modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
       Fri May 06 16:46:26 2011 +0200
@@ -757,9 +757,9 @@
 
     // handle the following case:
     // table.window.identifier as the sort string
-    boolean isIdenfitier = localOrderBy.equals(JsonConstants.IDENTIFIER)
+    boolean isIdentifier = localOrderBy.equals(JsonConstants.IDENTIFIER)
         || localOrderBy.endsWith("." + JsonConstants.IDENTIFIER);
-    if (isIdenfitier) {
+    if (isIdentifier) {
       Entity searchEntity = getEntity();
       // a path to an entity, find the last entity
       final String prefix;

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to