Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0020043 | Openbravo ERP | B. User interface | public | 2012-03-15 20:41 | 2012-09-16 19:59 |
Reporter | dbaz | ||||
Assigned To | dbaz | ||||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | 3.0MP12 | Fixed in Version | |||
Merge Request Status | |||||
Review Assigned To | guilleaer | ||||
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 | 0020043: [SC Upgrade] Quick create/launch doesn't open a tab when selecting a value after upgrade to SC 8.3d 2012-03-12 (or later) | ||||
Description | Quick create/launch doesn't open a tab when selecting a value after upgrade to SC 8.3d 2012-03-12 (or later) | ||||
Steps To Reproduce | With an instance upgraded to Smartclient 8.3d 2012-03-12 (or later) Login into the application. Open quick create or quick launch and select any value in the combo. Nothing happens. | ||||
Proposed Solution | The problem is that after the upgrade is not possible to select a value of a combo that uses "optionDataSource" The "pickValue" [PickList.js] is in charge of "draw" the desired value in the combo. This "pickValue" has a "value" argument to determine the selected value "pickValue" is called from "itemClick" [PickList.js] which determine the "value" to pass to "pickValue" using "formItem.getValueFieldName()" "getValueFieldName" [FormItem.js] in the OLD SmartClient version is like: getValueFieldName : function () { if (this.valueField) return this.valueField; if (this.form.dataSource && this.foreignKey) return isc.DS.getForeignFieldName(this, this.form.dataSource); var fieldName = this.getFieldName(), ods = this.getOptionDataSource(); if (ods && ods.getField(fieldName) == null) { // if we have an optionDataSource but our valueField isn't in it at all, use the // DataSource's titleField fieldName = ods.getTitleField(); } return fieldName || "name"; }, and in the new version is like: getValueFieldName : function () { if (this.valueField) return this.valueField; if (this.form.dataSource && this.foreignKey) return isc.DS.getForeignFieldName(this, this.form.dataSource); var fieldName = this.getFieldName(); return fieldName || "name"; }, As you can see in the old implementation looks if there is an optionDataSource to extract the fieldName from there, but in the new version it just returns the plain fieldName of the combo (so, the name of the combo item, and not the name of the selected item inside the combo drop down) Solution: inside "ob-quick-launch.js" add a customized "getValueFieldName" function that search inside the "optionDataSource" for the desired name UPDATED: Better Solution: Add the "valueField" inside the definition. With this fix, there is no need to overide anything, since "getValueFieldName" the first thing it does is check this "valueField" and if exists, it returns it | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-03-15 20:41 | dbaz | New Issue | |||
2012-03-15 20:41 | dbaz | Assigned To | => dbaz | ||
2012-03-15 20:41 | dbaz | Modules | => Core | ||
2012-03-15 20:51 | dbaz | Note Added: 0046481 | |||
2012-03-16 13:23 | dbaz | Proposed Solution updated | |||
2012-03-16 13:25 | dbaz | Note Added: 0046514 | |||
2012-03-16 17:50 | dbaz | Note Edited: 0046514 | bug_revision_view_page.php?bugnote_id=0046514#r3278 | ||
2012-05-02 21:59 | hgbot | Checkin | |||
2012-05-02 21:59 | hgbot | Note Added: 0048255 | |||
2012-05-02 21:59 | hgbot | Status | new => resolved | ||
2012-05-02 21:59 | hgbot | Resolution | open => fixed | ||
2012-05-02 21:59 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/869c1d792a240e57fcaa3dcbf0c3953af0e991f5 [^] | ||
2012-05-02 22:00 | hgbot | Checkin | |||
2012-05-02 22:00 | hgbot | Note Added: 0048256 | |||
2012-05-02 22:00 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/869c1d792a240e57fcaa3dcbf0c3953af0e991f5 [^] => http://code.openbravo.com/erp/devel/pi/rev/8db7c53ab76b0b5c31abf0ec01b87d7effa4d2a1 [^] | ||
2012-05-02 22:00 | hgbot | Checkin | |||
2012-05-02 22:00 | hgbot | Note Added: 0048258 | |||
2012-05-02 22:00 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/8db7c53ab76b0b5c31abf0ec01b87d7effa4d2a1 [^] => http://code.openbravo.com/erp/devel/pi/rev/a6bf2830251111c427dcbc58b26ba5295abe0d9a [^] | ||
2012-05-21 17:36 | guilleaer | Note Added: 0048819 | |||
2012-05-21 17:36 | guilleaer | Status | resolved => closed | ||
2012-05-21 17:36 | guilleaer | Fixed in Version | => pi | ||
2012-05-25 12:07 | hudsonbot | Checkin | |||
2012-05-25 12:07 | hudsonbot | Note Added: 0048949 | |||
2012-05-25 12:07 | hudsonbot | Checkin | |||
2012-05-25 12:07 | hudsonbot | Note Added: 0048950 | |||
2012-05-25 12:07 | hudsonbot | Checkin | |||
2012-05-25 12:07 | hudsonbot | Note Added: 0048952 | |||
2012-05-25 18:00 | guilleaer | Assigned To | dbaz => guilleaer | ||
2012-05-25 18:00 | guilleaer | Note Added: 0049249 | |||
2012-05-25 18:00 | guilleaer | Status | closed => new | ||
2012-05-25 18:00 | guilleaer | Resolution | fixed => open | ||
2012-05-25 18:00 | guilleaer | Fixed in Version | pi => | ||
2012-05-25 18:00 | guilleaer | Status | new => scheduled | ||
2012-05-25 18:00 | guilleaer | Note Added: 0049250 | |||
2012-05-25 18:00 | guilleaer | fix_in_branch | => pi | ||
2012-05-25 18:01 | guilleaer | Note Added: 0049251 | |||
2012-05-25 18:01 | guilleaer | Status | scheduled => resolved | ||
2012-05-25 18:01 | guilleaer | Fixed in Version | => 3.0MP12 | ||
2012-05-25 18:01 | guilleaer | Resolution | open => fixed | ||
2012-05-25 18:01 | guilleaer | Note Added: 0049252 | |||
2012-05-25 18:01 | guilleaer | Status | resolved => closed | ||
2012-09-16 19:59 | guilleaer | Assigned To | guilleaer => dbaz | ||
2012-09-16 19:59 | guilleaer | Status | closed => new | ||
2012-09-16 19:59 | guilleaer | Resolution | fixed => open | ||
2012-09-16 19:59 | guilleaer | Fixed in Version | 3.0MP12 => | ||
2012-09-16 19:59 | guilleaer | Status | new => scheduled | ||
2012-09-16 19:59 | guilleaer | Status | scheduled => resolved | ||
2012-09-16 19:59 | guilleaer | Resolution | open => fixed | ||
2012-09-16 19:59 | guilleaer | Closed by | => guilleaer | ||
2012-09-16 19:59 | guilleaer | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|