Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020532
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2012-05-17 08:302012-05-28 12:44
ReporteriperdomoView Statuspublic 
Assigned Tomtaal 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionb08f17d2334f
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava versionOpenJDK 1.6.0_24
OS Version3.3.6-1-ARCHDatabase version9.1.3Ant version1.8.2
Product VersionpiSCM revision5e580de24a96 
Review Assigned To
Web browserGoogle Chrome
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020532: OB.Datasource.get() still uses dot (.) as field separator

DescriptionThe helper function OB.Datasource.get makes a request to get a Datasource definition based on an entity, but the returned field definition is still using dot as field separator
Steps To Reproduce* Login into the application

* Make a request to get a datasource definition, e.g. http://localhost/openbravo/org.openbravo.client.kernel/OBSERDS_Datasource/Order?_create=true&_new=true [^]

* Check the response and see that several referenced entities use: ._identifier, eg. {name: 'createdBy._identifier' }, {name: 'updatedBy._identifier' }, {name: 'documentType._identifier' },

* Now make a request to the default datasource on the same entity, e.g. http://localhost/openbravo/org.openbravo.service.datasource/Order [^]

* Check that the returned data uses $_identifier for those fields, e.g.
"createdBy$_identifier": "System", "updatedBy$_identifier": "System", "documentType$_identifier": "Purchase Order",
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0048733)
hgbot (developer)
2012-05-17 14:58

Repository: erp/devel/pi
Changeset: b08f17d2334f850fa47d67f1f46e1e68992c9b69
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu May 17 14:57:33 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b08f17d2334f850fa47d67f1f46e1e68992c9b69 [^]

Fixes issue 20532: OB.Datasource.get() still uses dot (.) as field separator
Replace field separator dot with constant in several places.

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DefaultDataSourceService.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/templates/datasource.ftl
M modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/SelectorComponent.java
---
(0048734)
mtaal (manager)
2012-05-17 14:59

As an extra remark, to test this: test a selector with outfields
(0049156)
hudsonbot (developer)
2012-05-25 12:12

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/5401e185a8b0 [^]

Maturity status: Test
(0049357)
iperdomo (reporter)
2012-05-28 12:44

Tested on pi @ rev ba95c4bd8198

- Issue History
Date Modified Username Field Change
2012-05-17 08:30 iperdomo New Issue
2012-05-17 08:30 iperdomo Assigned To => mtaal
2012-05-17 08:30 iperdomo Web browser => Google Chrome
2012-05-17 08:30 iperdomo Modules => Core
2012-05-17 08:31 iperdomo Web browser Google Chrome => Google Chrome
2012-05-17 08:31 iperdomo Steps to Reproduce Updated View Revisions
2012-05-17 14:58 hgbot Checkin
2012-05-17 14:58 hgbot Note Added: 0048733
2012-05-17 14:58 hgbot Status new => resolved
2012-05-17 14:58 hgbot Resolution open => fixed
2012-05-17 14:58 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b08f17d2334f850fa47d67f1f46e1e68992c9b69 [^]
2012-05-17 14:59 mtaal Note Added: 0048734
2012-05-25 12:12 hudsonbot Checkin
2012-05-25 12:12 hudsonbot Note Added: 0049156
2012-05-28 12:44 iperdomo Note Added: 0049357
2012-05-28 12:44 iperdomo Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker