Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027066Openbravo ERPB. User interfacepublic2014-07-14 17:552014-09-01 06:38
ngarcia 
AugustoMauch 
hightrivialalways
closedfixed 
5
 
3.0PR14Q43.0PR14Q4 
shankarb
Core
No
0027066: When autocompleting date fields the format defined in Openbravo.properties is not used
When autocompleting date fields the format defined in Openbravo.properties is not used
Define the date formats to be separated by / instead of - in the Openbravo.properties file
   As group admin role:
      Open the Payment report window
      Enter 010114 in the Due date From field and push the Tab key
      Check the date is updated: 01/01/2014
      Launch the report
      You will get the following error:
"org.hibernate.exception.SQLGrammarException: could not execute query"
No tags attached.
Issue History
2014-07-14 17:55ngarciaNew Issue
2014-07-14 17:55ngarciaAssigned To => dbaz
2014-07-14 17:55ngarciaModules => Core
2014-07-14 17:55ngarciaResolution time => 1411423200
2014-07-14 17:55ngarciaTriggers an Emergency Pack => No
2014-07-14 17:55ngarciaAssigned Todbaz => jonalegriaesarte
2014-07-14 17:55ngarciaIssue Monitored: networkb
2014-07-14 18:56heccamIssue Monitored: heccam
2014-07-24 13:48jonalegriaesarteAssigned Tojonalegriaesarte => AugustoMauch
2014-08-05 13:35AugustoMauchTarget Version => 3.0PR14Q4
2014-08-25 18:09AugustoMauchNote Added: 0069718
2014-08-28 14:53AugustoMauchIssue Monitored: shankarb
2014-08-28 14:53AugustoMauchReview Assigned To => shankarb
2014-08-28 14:54hgbotCheckin
2014-08-28 14:54hgbotNote Added: 0069835
2014-08-28 14:54hgbotStatusnew => resolved
2014-08-28 14:54hgbotResolutionopen => fixed
2014-08-28 14:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3a731d082a0d6365d104ffe93893a043d7048e33 [^]
2014-08-29 15:53hudsonbotCheckin
2014-08-29 15:53hudsonbotNote Added: 0069859
2014-09-01 06:38shankarbNote Added: 0069874
2014-09-01 06:38shankarbStatusresolved => closed
2014-09-01 06:38shankarbFixed in Version => 3.0PR14Q4
2014-09-01 17:16ngarciaRelationship addedrelated to 0027518
2014-09-01 17:16ngarciaRelationship deletedrelated to 0027518

Notes
(0069718)
AugustoMauch   
2014-08-25 18:09   
The bug is located in the getDateTime function of DateTextBox.js. getDateTime calls to purgeDateFormat, which among other things it does the following:

  str_format = str_format.replace("/","-").replace("/","-").replace("/","-");

This modifies the date format, changing the date separator from '/' to '-'.
(0069835)
hgbot   
2014-08-28 14:54   
Repository: erp/devel/pi
Changeset: 3a731d082a0d6365d104ffe93893a043d7048e33
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Aug 28 14:52:46 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3a731d082a0d6365d104ffe93893a043d7048e33 [^]

Fixes issue 27066: Dojo autocompleting changes the date separator

In the autocompleting process, dojo needs to use the '-' date separator. The problem was that after doing the autocompletion it was not respecting the original date separator, so if it used '/', this date 01/02/03 would to autocompleted to 01-02-2003.

To fix this the date separator is saved before purging the date format.

---
M web/js/dojo/dojo.js
---
(0069859)
hudsonbot   
2014-08-29 15:53   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/af520c9729b9 [^]
Maturity status: Test
(0069874)
shankarb   
2014-09-01 06:38   
Code reviewed and verified in pi changeset 611572b5205f