Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0024491 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | always | 2013-08-06 14:37 | 2013-08-27 15:40 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0MP27 | |||
Status | closed | Fix in branch | Fixed in SCM revision | f0180754bd11 | ||||
Projection | none | ETA | none | Target Version | 3.0MP28 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | shankarb | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 22785 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0024491: Date Time fields are not updated properly using callouts | |||||||
Description | Date Time fields are not being updated properly when setting their values from a callout. | |||||||
Steps To Reproduce | 1) 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(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 (viewer) 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 (viewer) 2013-08-27 15:40 |
Code reviewed and verified in pi changeset 327ce5aac264 |
![]() |
|||
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 | OBNetwork customer | => Yes |
2013-08-06 14:37 | caristu | Support ticket | => 22785 |
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 |