Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0020850 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 01. General setup | minor | always | 2012-06-25 11:06 | 2012-07-27 02:18 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | eea99f760fd9 | ||||
Projection | none | ETA | none | Target Version | 3.0MP14 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0020850: Alert Hour is not displayed correctly | |||||||
Description | The alert time shown in [Alert Management] window is not showing the correct hour. The date is correct, but the hour in not. Also the minutes and seconds always are equal to 0. | |||||||
Steps To Reproduce | 1) With the group admin role, create an alert in [Alert] Window, in [Alert Recipient] tab insert a row with the group admin role as recipient. 2) As system administrator role, go to [Process Request] Window and verify that the alert process is in scheduled state. 3) Switch to group admin role again, go to the [Alert Management] window and check the time of the new generated alert. | |||||||
Tags | No tags attached. | |||||||
Attached Files | issue20850.diff [^] (6,993 bytes) 2012-07-19 13:09 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0050553) AugustoMauch (manager) 2012-07-13 12:15 |
The root of this issue is the way AlertProcessData is generated. In the selectAlert method of AlertProcess_data, the line TO_DATE(NULL) AS CREATED is translated into created = UtilSql.getDateValue(result, "created", "dd-MM-yyyy");, taking the date format from the DateFormat of Openbravo.properties. |
(0050910) hgbot (developer) 2012-07-26 16:58 |
Repository: erp/devel/pi Changeset: eea99f760fd9c6e8aaba989e56bb3fdf8b741f58 Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Thu Jul 26 16:57:07 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/eea99f760fd9c6e8aaba989e56bb3fdf8b741f58 [^] Fixes issue 20850: Alert hour is displayed correctly The alert hour was not being saved correctly because of the way sqlc.java generates processAlertData.java. Even though the column in the database is a timestamp, in the select and in the insert functions the date format was being used, instead of the date time format. It was not possible to fix it modifying the xsql file, and it was very risky to modify Sqlc.java, so now ProcessAlerts.java use jdbc to select and insert the alerts. --- M src-core/src/org/openbravo/data/UtilSql.java M src/org/openbravo/erpCommon/ad_process/AlertProcess.java --- |
(0050914) caristu (developer) 2012-07-26 17:51 |
Verified |
(0050923) hudsonbot (developer) 2012-07-27 02:18 |
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/4cfe6f4cd84a [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2012-06-25 11:06 | caristu | New Issue | |
2012-06-25 11:06 | caristu | Assigned To | => mirurita |
2012-06-25 11:06 | caristu | Modules | => Core |
2012-06-25 11:06 | caristu | Resolution time | => 1346968800 |
2012-06-25 11:09 | caristu | Issue Monitored: networkb | |
2012-06-25 13:23 | jonalegriaesarte | Assigned To | mirurita => alostale |
2012-07-13 12:15 | AugustoMauch | Note Added: 0050553 | |
2012-07-19 13:09 | AugustoMauch | File Added: issue20850.diff | |
2012-07-19 13:18 | AugustoMauch | Assigned To | alostale => AugustoMauch |
2012-07-26 16:58 | hgbot | Checkin | |
2012-07-26 16:58 | hgbot | Note Added: 0050910 | |
2012-07-26 16:58 | hgbot | Status | new => resolved |
2012-07-26 16:58 | hgbot | Resolution | open => fixed |
2012-07-26 16:58 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/eea99f760fd9c6e8aaba989e56bb3fdf8b741f58 [^] |
2012-07-26 17:51 | caristu | Note Added: 0050914 | |
2012-07-26 17:51 | caristu | Status | resolved => closed |
2012-07-27 02:18 | hudsonbot | Checkin | |
2012-07-27 02:18 | hudsonbot | Note Added: 0050923 |
Copyright © 2000 - 2009 MantisBT Group |