Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036897
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2017-09-19 18:162018-01-03 12:39
ReporterJONHMView Statuspublic 
Assigned Tojarmendariz 
PrioritynormalResolutionfixedFixed in Version3.0PR18Q1
StatusclosedFix in branchFixed in SCM revisionb0c64f2ef32d
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036897: Different types of date format when using the @#Date@ default value into a String reference

DescriptionWe obtain different types of date format when using the @#Date@ default value into a String reference. It is caused because referenceQry used in UIDefinitionController class is not been ordered
Steps To Reproduce1) Open "Physical Inventory" window and create a new record

Depends on the environment, the format of 'Name' field is different.
Proposed SolutionThis query does not have an 'order by' clause:
https://code.openbravo.com/erp/devel/pi/file/27a01d1d9bee/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinitionController.java#l125 [^]

But anyway it could be useful to decide one unique reference to use in this case or set a new preference to let the user to decide it.
TagsNo tags attached.
Attached Filespng file icon environmentA.png [^] (82,526 bytes) 2017-09-19 18:29


png file icon environmentB.png [^] (81,831 bytes) 2017-09-19 18:29

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00163993.0RC6 closedmtaal Price List Version is filled with wrong values if date format is not default 

-  Notes
(0100696)
caristu (developer)
2017-11-24 09:54

Need to decide which is the best criteria to select the most suitable DateUIDefinition to parse the date in this case.
(0101061)
hgbot (developer)
2017-12-15 13:50

Repository: erp/devel/pi
Changeset: b0c64f2ef32ddf4a0a7a5967951fc55b329791f9
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Fri Dec 15 09:16:47 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b0c64f2ef32ddf4a0a7a5967951fc55b329791f9 [^]

Fixes bug 36897: Inconsistent date format for default value in String reference

Depending on which UIDefinition is picked up first, different Date UIDefinitions could be used to format the @#Date@ expression as the default value of a String field. Now we use DateTimeUIDefinition to ensure we always apply the same date format.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
---
(0101062)
caristu (developer)
2017-12-15 13:51

Code reviewed + tested OK.
(0101527)
hudsonbot (developer)
2018-01-03 12:39

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/c81e0d3cbab5 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2017-09-19 18:16 JONHM New Issue
2017-09-19 18:16 JONHM Assigned To => platform
2017-09-19 18:16 JONHM Modules => Core
2017-09-19 18:16 JONHM Triggers an Emergency Pack => No
2017-09-19 18:23 JONHM Summary Different types of date format when using the @#Date@ default value in a String reference => Different types of date format when using the @#Date@ default value into a String reference
2017-09-19 18:23 JONHM Description Updated View Revisions
2017-09-19 18:23 JONHM Proposed Solution updated
2017-09-19 18:29 JONHM File Added: environmentA.png
2017-09-19 18:29 JONHM File Added: environmentB.png
2017-10-04 10:12 Practics Issue Monitored: Practics
2017-11-24 09:42 caristu Relationship added related to 0016399
2017-11-24 09:54 caristu Note Added: 0100696
2017-11-24 09:54 caristu Status new => acknowledged
2017-11-28 14:05 caristu Status acknowledged => scheduled
2017-11-28 14:05 caristu Assigned To platform => caristu
2017-11-28 16:24 caristu Assigned To caristu => platform
2017-11-28 16:24 caristu Status scheduled => acknowledged
2017-12-13 19:27 caristu Assigned To platform => jarmendariz
2017-12-14 11:02 caristu Status acknowledged => scheduled
2017-12-15 13:50 hgbot Checkin
2017-12-15 13:50 hgbot Note Added: 0101061
2017-12-15 13:50 hgbot Status scheduled => resolved
2017-12-15 13:50 hgbot Resolution open => fixed
2017-12-15 13:50 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b0c64f2ef32ddf4a0a7a5967951fc55b329791f9 [^]
2017-12-15 13:51 caristu Review Assigned To => caristu
2017-12-15 13:51 caristu Note Added: 0101062
2017-12-15 13:51 caristu Status resolved => closed
2017-12-15 13:51 caristu Fixed in Version => 3.0PR18Q1
2018-01-03 12:39 hudsonbot Checkin
2018-01-03 12:39 hudsonbot Note Added: 0101527


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker