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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049398
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] B. User interfacemajoralways2022-05-24 21:052022-06-27 11:34
ReporteraxelmercadoView Statuspublic 
Assigned ToAugustoMauch 
PriorityhighResolutionfixedFixed in VersionPR22Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version3.0PR19Q4.3SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049398: Error displaying a time type field in grid view and form view in a property field

DescriptionWhen displaying information in a field of type time stored in a property field, it is displayed correctly in grid view, but in form view the values are changed.
Steps To Reproduce1-Identify a table that contains a time column or create a new new. I.e. you can use the ad_org.EM_Obpos2_Default_Deliverytime column (Default Delivery Time field)
2-Call this column through a property field in another table. I.e. create a property field in the Unit of Measure header tab, using organization.obpos2DefaultDeliverytime as property value.
3-Give a value to the Default Delivery Time field of an organization
3-Open Unit of Measure, and notice that the values for the property field in the form and grid views are different


This will show that the values in both views are different.
Proposed SolutionWe believe that this is due to the fact that in grid view the value is shown with time zone and in formulary view it is not.
TagsNo tags attached.
Attached Filesjpeg file icon cap1.jpeg [^] (70,096 bytes) 2022-05-24 21:05


jpeg file icon cap2.jpeg [^] (51,356 bytes) 2022-05-24 21:06


png file icon exampWin,tab&fie.png [^] (108,585 bytes) 2022-06-16 15:12


png file icon exampWin,tab&fie2.png [^] (260,914 bytes) 2022-06-16 15:13


png file icon exampBPLocationHour.png [^] (135,734 bytes) 2022-06-16 15:13


png file icon exampWindHour.png [^] (57,905 bytes) 2022-06-16 15:14


png file icon exampWindHourFormView.png [^] (69,585 bytes) 2022-06-16 15:14

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0138754)
hgbot (developer)
2022-06-24 13:51

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/628 [^]
(0138776)
hgbot (developer)
2022-06-27 11:34

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 1858d262a1e4e4e8b35f0bd025b89f5705831f8a
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 27-06-2022 11:32:43
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/1858d262a1e4e4e8b35f0bd025b89f5705831f8a [^]

Fixes ISSUE-49398: Time property fields are properly displayed in form view

The TimeUIDefinition.getFieldProperties expects to receive the UTC value as a request parameter. When the field is
not a property field, the request parameter is named like this: "inp" + Sqlc.TransformaNombreColumna(field.getColumn().getDBColumnName()),
but when it is a property field the naming of the parameter is different. As a result, the current value was not found, so it was not
being converted from UTC to local time.

To fix it, the getFieldProperties method will first look for the standard parameter and if not found it will look for it using the property
field name convention

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/TimeUIDefinition.java
---
(0138777)
hgbot (developer)
2022-06-27 11:34

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/628 [^]

- Issue History
Date Modified Username Field Change
2022-05-24 21:05 axelmercado New Issue
2022-05-24 21:05 axelmercado Assigned To => Triage Platform Base
2022-05-24 21:05 axelmercado File Added: cap1.jpeg
2022-05-24 21:05 axelmercado Modules => Core
2022-05-24 21:05 axelmercado Triggers an Emergency Pack => No
2022-05-24 21:06 axelmercado File Added: cap2.jpeg
2022-05-24 21:14 eugeni Issue Monitored: eugeni
2022-06-16 15:12 axelmercado File Added: exampWin,tab&fie.png
2022-06-16 15:13 axelmercado File Added: exampWin,tab&fie2.png
2022-06-16 15:13 axelmercado File Added: exampBPLocationHour.png
2022-06-16 15:14 axelmercado File Added: exampWindHour.png
2022-06-16 15:14 axelmercado File Added: exampWindHourFormView.png
2022-06-24 12:02 AugustoMauch Assigned To Triage Platform Base => AugustoMauch
2022-06-24 12:02 AugustoMauch Status new => scheduled
2022-06-24 13:51 hgbot Note Added: 0138754
2022-06-27 10:13 AugustoMauch Steps to Reproduce Updated View Revisions
2022-06-27 11:34 hgbot Resolution open => fixed
2022-06-27 11:34 hgbot Status scheduled => closed
2022-06-27 11:34 hgbot Fixed in Version => PR22Q3
2022-06-27 11:34 hgbot Note Added: 0138776
2022-06-27 11:34 hgbot Note Added: 0138777


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker