details:   https://code.openbravo.com/erp/devel/pi/rev/2107a74db26b
changeset: 22861:2107a74db26b
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Thu Apr 10 18:30:33 2014 +0200
summary:   Fixes issue 26228: Date fields are not displayed properly in the 
tree grid view

The previous fix did not take into account the date fields, it only worked for 
datetime fields.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 527597db45b8 -r 2107a74db26b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
     Thu Apr 10 17:39:29 2014 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
     Thu Apr 10 18:30:33 2014 +0200
@@ -142,7 +142,7 @@
   },
 
   applyCellTypeFormatters: function (value, record, field, rowNum, colNum, 
isMultipleElement) {
-    if (field.type === '_id_16' && value && !isc.isA.Date(value) && 
isc.isA.Date(Date.parseSchemaDate(value))) {
+    if ((field.type === '_id_15' || field.type === '_id_16') && value && 
!isc.isA.Date(value) && isc.isA.Date(Date.parseSchemaDate(value))) {
       // applyCellTypeFormatters expects a date as value if the field is a date
       // if the original value is not a date, convert it to date before 
calling applyCellTypeFormatters
       value = Date.parseSchemaDate(value);

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to