Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019843Openbravo ERPA. Platformpublic2012-02-22 15:552012-04-01 20:37
shuehner 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
3.0MP7 
 
Core
No
0019843: After saving newly created recrod, the 'Audit' section of form view shows uuid for created by & updated by
Just after saving a newly created record the 'Audit' section 'created by' & 'updated by' fields shows raw-uuid values instead of the identifier/name of the current user.

Closing + Reopening form view does show the correct values.

Reproducible i.e. in butler using 'upgrade restrictions' windows
but also in live.builds (pi, 2012-02-22) using i.e. normal Product window
Open product window
click new in form
fill in mandatory fields with any value
Save
open the 'audit' section of the form view without leaving the form view after saving
Notice that 'Created By' + 'Updated By' show the uuid of the current user instead of its name.
Close form view
Open form view of same record again
Now the correct values are displayed.
No tags attached.
related to defect 00208753.0MP13 closed AugustoMauch The audit shows the user id instead of the user name 
png 19843.png (34,088) 2012-02-22 15:56
https://issues.openbravo.com/file_download.php?file_id=5019&type=bug
png
Issue History
2012-02-22 15:55shuehnerNew Issue
2012-02-22 15:55shuehnerAssigned To => alostale
2012-02-22 15:55shuehnerModules => Core
2012-02-22 15:56alostaleAssigned Toalostale => AugustoMauch
2012-02-22 15:56shuehnerFile Added: 19843.png
2012-03-05 16:28hgbotCheckin
2012-03-05 16:28hgbotNote Added: 0046050
2012-03-05 16:28hgbotStatusnew => resolved
2012-03-05 16:28hgbotResolutionopen => fixed
2012-03-05 16:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a80d6b4a1e0c7976cdfa7ad66a6b83fcff5f762d [^]
2012-03-05 16:58AugustoMauchNote Added: 0046051
2012-03-06 13:15iperdomoNote Added: 0046085
2012-03-06 13:15iperdomoStatusresolved => closed
2012-04-01 20:37hudsonbotCheckin
2012-04-01 20:37hudsonbotNote Added: 0047035
2012-06-26 23:08AugustoMauchRelationship addedrelated to 0020875

Notes
(0046050)
hgbot   
2012-03-05 16:28   
Repository: erp/devel/pi
Changeset: a80d6b4a1e0c7976cdfa7ad66a6b83fcff5f762d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Mar 05 16:26:19 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a80d6b4a1e0c7976cdfa7ad66a6b83fcff5f762d [^]

Fixes issue 19843: Audit section fields show the correct info

The valueMap that was being used to get the name of a user out of its identifier was not being initialized correctly, thus sometimes in the audit s
ection the identifier of the user was beign shown, instead of its name. The new initialization has been added to the remeberValues function of ob-v
iew-form. It is called when the response of the datasource is received. The new code only affects the createdBy and updatedBy fields, and only when
 its valueMap is not properly initialized.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0046051)
AugustoMauch   
2012-03-05 16:58   
Test plan:

- Open the Unit of Measure window
- Click Create New Record in Form button.
- Enter a valid EDI Code and Name.
- Push the Save button.
- Open the Audit section. The name of the user should be displayed in the createdBy and updatedBy fields

This is not a risky fix.
(0046085)
iperdomo   
2012-03-06 13:15   
Tested on pi @ rev efa5d74b862b

- Using Openbravo user
- Created a new Unit of Measure
- Check that Audit section shows the proper user name
- Changed the user to QAAdmin user
- Created a new Unit of Measure
- Check the Audit section and check the proper username
(0047035)
hudsonbot   
2012-04-01 20:37   
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/640de9acc2d5 [^]

Maturity status: Test