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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024491
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2013-08-06 14:372013-08-27 15:40
ReportercaristuView Statuspublic 
Assigned ToAugustoMauch 
PriorityhighResolutionfixedFixed in Version3.0MP27
StatusclosedFix in branchFixed in SCM revisionf0180754bd11
ProjectionnoneETAnoneTarget Version3.0MP28
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toshankarb
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0024491: Date Time fields are not updated properly using callouts

DescriptionDate Time fields are not being updated properly when setting their values from a callout.
Steps To Reproduce1) Create a new column as follows: ALTER TABLE c_invopice ADD COLUMN em_moduledbprefix_datestart timestamp without time zone not null default now();
2) Register the new column in the application dictionary in [Tables and Columns] window. Choose the DateTime reference.
3) Create the field related to the new column.
4) Create a callout that changes that field value. Attached is a simple callout that can be used for testing. Register it in the [Callout] window and assing it to a field in the same tab of the one created in step 3.
5) Notice that the value of the field is not updated properly.
TagsNo tags attached.
Attached Files? file icon MyCallout.java [^] (680 bytes) 2013-08-06 14:54

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00247833.0MP29 closedshankarb Time fields are not refreshed when setting their values trough an event handler 

-  Notes
(0060710)
hgbot (developer)
2013-08-21 13:25

Repository: erp/devel/pi
Changeset: f0180754bd11bc5b55cf79138439371614912b2d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Aug 21 13:24:36 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f0180754bd11bc5b55cf79138439371614912b2d [^]

Fixes issue 24491: DateTime fields can be modified from callouts

The problem was the following:
- The current value of the datetime field is, i.e., 05-06-2013 10:00:00
- The callout tries to change it to another datetime, but not modifying the date part, i.e. 05-06-2013 11:45:00
- In order to check if the value of the field needed to be changed, the function isc.Date.compareLogicalDates(newValue, oldValue) was used. This function only
checks the date part of the value. In this case the date part is the same, so the change was not applied.

To fix this, datetime fields use isc.Date.compareDates (which compares both the date and the time parts) instead of isc.Date.compareLogicalDates.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-datetime.js
---
(0060732)
hudsonbot (developer)
2013-08-22 18:17

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/7535642cd9cf [^]

Maturity status: Test
(0060792)
shankarb (reporter)
2013-08-27 15:40

Code reviewed and verified in pi changeset 327ce5aac264

- Issue History
Date Modified Username Field Change
2013-08-06 14:37 caristu New Issue
2013-08-06 14:37 caristu Assigned To => AugustoMauch
2013-08-06 14:37 caristu Modules => Core
2013-08-06 14:37 caristu Resolution time => 1382306400
2013-08-06 14:37 caristu Triggers an Emergency Pack => No
2013-08-06 14:38 caristu Issue Monitored: networkb
2013-08-06 14:39 caristu File Added: MyCallout.java
2013-08-06 14:39 caristu Steps to Reproduce Updated View Revisions
2013-08-06 14:53 caristu File Deleted: MyCallout.java
2013-08-06 14:54 caristu File Added: MyCallout.java
2013-08-21 13:19 AugustoMauch Issue Monitored: dbaz
2013-08-21 13:19 AugustoMauch Review Assigned To => dbaz
2013-08-21 13:25 hgbot Checkin
2013-08-21 13:25 hgbot Note Added: 0060710
2013-08-21 13:25 hgbot Status new => resolved
2013-08-21 13:25 hgbot Resolution open => fixed
2013-08-21 13:25 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f0180754bd11bc5b55cf79138439371614912b2d [^]
2013-08-22 18:17 hudsonbot Checkin
2013-08-22 18:17 hudsonbot Note Added: 0060732
2013-08-27 08:46 AugustoMauch Review Assigned To dbaz => shankarb
2013-08-27 15:40 shankarb Note Added: 0060792
2013-08-27 15:40 shankarb Status resolved => closed
2013-08-27 15:40 shankarb Fixed in Version => 3.0MP27
2013-09-16 17:55 caristu Relationship added related to 0024783


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker