Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019872Openbravo ERPA. Platformpublic2012-02-24 16:082012-03-02 15:39
rgoris 
guilleaer 
immediatemajorhave not tried
closedfixed 
5
 
3.0MP9 
Core
No
0019872: Strange date value in date picker
See screenshot, there are values with a % in them:

%0 days ago
%0 weeks ago
%0 months ago

etc.

THis must be N days ago, etc, right?
Pick a date from the column filter selector in a grid
Regression QA
related to defect 00195863.0MP10 closed guilleaer Attachment message fails when translation installed. 
png percentage-days.png (45,301) 2012-02-24 16:08
https://issues.openbravo.com/file_download.php?file_id=5025&type=bug
png
Issue History
2012-02-24 16:08rgorisNew Issue
2012-02-24 16:08rgorisAssigned To => alostale
2012-02-24 16:08rgorisFile Added: percentage-days.png
2012-02-24 16:08rgorisModules => Core
2012-02-28 10:57alostaleTag Attached: Regression QA
2012-02-28 10:58alostaleRelationship addedrelated to 0019586
2012-02-28 10:59alostaleNote Added: 0045518
2012-02-28 11:00alostaleStatusnew => scheduled
2012-02-28 11:00alostaleAssigned Toalostale => guilleaer
2012-02-28 11:00alostalefix_in_branch => pi
2012-02-28 11:00alostalePrioritynormal => immediate
2012-02-28 11:00alostalefix_in_branchpi =>
2012-02-28 13:29hgbotCheckin
2012-02-28 13:29hgbotNote Added: 0045533
2012-02-28 13:29hgbotStatusscheduled => resolved
2012-02-28 13:29hgbotResolutionopen => fixed
2012-02-28 13:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5e2e3880c5ef80f1a4d4317187c44da8bca6dc2e [^]
2012-02-28 13:45guilleaerNote Added: 0045535
2012-02-28 17:45hgbotCheckin
2012-02-28 17:45hgbotNote Added: 0045557
2012-02-29 08:25alostaleNote Added: 0045564
2012-02-29 08:25alostaleStatusresolved => closed
2012-02-29 08:25alostaleFixed in Version => 3.0MP9
2012-03-02 15:39hudsonbotCheckin
2012-03-02 15:39hudsonbotNote Added: 0045971

Notes
(0045518)
alostale   
2012-02-28 10:59   
Error introduced when fixing issue 0019586.

The messages were correctly changed for what it was reported, but didn't realize they were correct for ranges.

Check usage in ob-formitem-minidaterange.js.

ack OBUIAPP_.*_ago modules/ --js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
880: return OB.Utilities.formatTimePassedMessage(n, 'OBUIAPP_months_ago');
883: return OB.Utilities.formatTimePassedMessage(n, 'OBUIAPP_weeks_ago');
886: return OB.Utilities.formatTimePassedMessage(n, 'OBUIAPP_days_ago');
893: return OB.Utilities.formatTimePassedMessage(n, 'OBUIAPP_hours_ago');
898: return OB.Utilities.formatTimePassedMessage(n, 'OBUIAPP_minutes_ago');

modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
25: millisecondsAgoTitle: OB.I18N.getLabel('OBUIAPP_milliseconds_ago'),
26: secondsAgoTitle: OB.I18N.getLabel('OBUIAPP_seconds_ago'),
27: minutesAgoTitle: OB.I18N.getLabel('OBUIAPP_minutes_ago'),
28: hoursAgoTitle: OB.I18N.getLabel('OBUIAPP_hours_ago'),
29: daysAgoTitle: OB.I18N.getLabel('OBUIAPP_days_ago'),
30: weeksAgoTitle: OB.I18N.getLabel('OBUIAPP_weeks_ago'),
31: monthsAgoTitle: OB.I18N.getLabel('OBUIAPP_months_ago'),
32: quartersAgoTitle: OB.I18N.getLabel('OBUIAPP_quarters_ago'),
33: yearsAgoTitle: OB.I18N.getLabel('OBUIAPP_years_ago'),
(0045533)
hgbot   
2012-02-28 13:29   
Repository: erp/devel/pi
Changeset: 5e2e3880c5ef80f1a4d4317187c44da8bca6dc2e
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Feb 28 13:26:38 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5e2e3880c5ef80f1a4d4317187c44da8bca6dc2e [^]

Fixed issue 19872: 'Ago' messages has been changed to be shown correctly in date picker.
New messages has been created to be shown in the attachments forms

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
---
(0045535)
guilleaer   
2012-02-28 13:45   
Test plan:
messages in the date picker (19872)
1. Go to the Goods Shipments
2. Using the date picker you can see that the messages works fine

messages in attachments form (19586)
1. Add an attachment to the good shipment
2. The message is shown correctly

No risk of regression detected.
(0045557)
hgbot   
2012-02-28 17:45   
Repository: erp/devel/pi
Changeset: eace38eb23f30f1c6c721fd2eb0ac5c58d1a570c
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 28 17:45:16 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/eace38eb23f30f1c6c721fd2eb0ac5c58d1a570c [^]

Fix inconsistency (related to issue 19872)

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
---
(0045564)
alostale   
2012-02-29 08:25   
Code reviewed and tested on pi@3afb79bd3730
(0045971)
hudsonbot   
2012-03-02 15:39   
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/544d64e0c159 [^]

Maturity status: Test