Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0020850 | Openbravo ERP | 01. General setup | public | 2012-06-25 11:06 | 2012-07-27 02:18 |
|
Reporter | caristu | |
Assigned To | AugustoMauch | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP14 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
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. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | issue20850.diff (6,993) 2012-07-19 13:09 https://issues.openbravo.com/file_download.php?file_id=5457&type=bug |
|
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 | |
Notes |
|
|
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
|
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
---
|
|
|
|
|
|
|
|