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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0023890
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2013-05-22 23:572013-06-02 09:43
ReporteregoitzView Statuspublic 
Assigned ToAugustoMauch 
PriorityurgentResolutionfixedFixed in Version3.0MP24
StatusclosedFix in branchFixed in SCM revision3b9604eee5d7
ProjectionnoneETAnoneTarget Version3.0MP24
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toshankarb
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0023890: Bad behaviour on grid view when searching on a selector field if the selector has defined a diplayed field

DescriptionBad behaviour on grid view when searching on a selector field if the selector has defined a diplayed field.

The query executed on grid view is different than the one executed on form view
Steps To Reproduce-As system administrador define a template
-Then go to the product selector reference.
-On the defined selector tab add a displayed field. For example name
Enable all the queries on the postgresql log
Logout and login
-go to sales order window
-go to lines window
-insert a new row on form view
-insert a letter on the product selector field, for example a.
*Check the sql that appears on the log
-repeat the same on grid view
*Check that the sql is different than the one that you get on form view
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00238893.0MP24 closedAugustoMauch When searching on the field of a new selector the request to the datasource is done twice 
related to defect 0030403 closedcaristu Unexpected behavior in grid view with OBUISEL_Selector reference when the Display Field is set 

-  Notes
(0059000)
hgbot (developer)
2013-05-28 17:50

Repository: erp/devel/pi
Changeset: 3b9604eee5d7b16109e339e75f17b5f8be9b4467
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue May 28 17:49:38 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3b9604eee5d7b16109e339e75f17b5f8be9b4467 [^]

Fixes issue 23890: The same hql is generated in the grid and in form view

The problem was that for that particular selector (Product selector), the generated displayfield string was 'product$product$name'. This is not correct, because the Product entity does not have a product property, the correct displayfield string is product$name. This has been fixed in the getDisplayFielName method of the FKSelectorUIDefinition class. A check has been added to make sure that the property used in the display field is part of the referenced entity. If it is not, then the displayFieldName is returned directly, instead of trying to append it to the referenced property.

---
M modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/reference/FKSelectorUIDefinition.java
---
(0059097)
hudsonbot (developer)
2013-06-01 02:14

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/31f9b82dde77 [^]

Maturity status: Test
(0059116)
shankarb (reporter)
2013-06-02 09:43

Code reviewed and tested in pi changeset f0878dbca750

- Issue History
Date Modified Username Field Change
2013-05-22 23:57 egoitz New Issue
2013-05-22 23:57 egoitz Assigned To => AugustoMauch
2013-05-22 23:57 egoitz Modules => Core
2013-05-22 23:57 egoitz Triggers an Emergency Pack => No
2013-05-22 23:58 egoitz Relationship added related to 0023889
2013-05-22 23:58 egoitz Tag Attached: Performance
2013-05-23 02:06 eintelau Issue Monitored: eintelau
2013-05-28 17:49 AugustoMauch Issue Monitored: shankarb
2013-05-28 17:50 AugustoMauch Review Assigned To => shankarb
2013-05-28 17:50 hgbot Checkin
2013-05-28 17:50 hgbot Note Added: 0059000
2013-05-28 17:50 hgbot Status new => resolved
2013-05-28 17:50 hgbot Resolution open => fixed
2013-05-28 17:50 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3b9604eee5d7b16109e339e75f17b5f8be9b4467 [^]
2013-06-01 02:14 hudsonbot Checkin
2013-06-01 02:14 hudsonbot Note Added: 0059097
2013-06-02 09:43 shankarb Note Added: 0059116
2013-06-02 09:43 shankarb Status resolved => closed
2013-06-02 09:43 shankarb Fixed in Version => 3.0MP24
2015-07-23 11:20 alostale Relationship added related to 0030403


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker