Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032153 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | sometimes | 2016-02-05 15:10 | 2016-08-30 12:42 | |||
Reporter | lorenzofidalgo | View Status | public | |||||
Assigned To | NaroaIriarte | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR16Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | f945e4c7788e | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | main | SCM revision | ||||||
Review Assigned To | alostale | |||||||
Web browser | Google Chrome | |||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0032153: [RR16Q1] "Update Characteristics" process does not show characteristics to choose them after creating a new record | |||||||
Description | After creating a new record in "Characteristics" tab, it is sometimes impossible to choose a characteristic value to the just created characteristic. It is stuck in "No items to show". | |||||||
Steps To Reproduce | 1-Login POS backend as Openbravo and go to "Product" window. 2-Select a product with a few invariants (ie. Alpine skiing backpack 27 L) and go to "Characteristics" tab 3-Click "Update Characteristics" process. 4-Quickly after previous step, click dropdown arrow and check "No items to show" appear. With browser's dev tools tools you can check: * Just after step 3, many identical requests are executed to create new datasources (up to 4 per invariant) * If step 4 is executed before the request to create the datasource for selected combo, the defined problem appears. In this case, the following js error can be seen in console: ISC_Combined.js:12243 Uncaught TypeError: Cannot read property 'resultTreeClass' of undefinedisc_Canvas_createResultTree @ ISC_Combined.js:12243isc_TreeGrid_createDataModel @ ISC_Combined.js:12310isc_Canvas_filterWithCriteria @ ISC_Combined.js:2688isc_c_Class_invokeSuper @ ISC_Combined.js:245isc_c_Class_Super @ ISC_Combined.js:237isc_TreeGrid_filterWithCriteria @ ISC_Combined.js:12312isc_Canvas__filter @ ISC_Combined.js:2687isc_c_Class_invokeSuper @ ISC_Combined.js:245isc_c_Class_Super @ ISC_Combined.js:237isc_ListGrid__filter @ ISC_Combined.js:6307isc_Canvas_fetchData @ ISC_Combined.js:2659isc_c_Class_invokeSuper @ ISC_Combined.js:245isc_c_Class_Super @ ISC_Combined.js:237isc_ListGrid_fetchData @ ISC_Combined.js:6044isc_c_Class_invokeSuper @ ISC_Combined.js:245isc_c_Class_Super @ ISC_Combined.js:237isc.OBTreeItemTree.addProperties.fetchData @ 1f025b6….js:1281isc.OBTreeItemTree.addProperties.show @ 1f025b6….js:1272tree.show @ 1f025b6….js:2929isc.OBTreeItem.addProperties.toggleTreePicker @ 1f025b6….js:1265isc.OBTreeItem.addProperties.showPicker @ 1f025b6….js:1265isc.A.pickerIconDefaults.click @ ISC_Combined.js:8298isc_FormItem__iconClick @ ISC_Combined.js:8699isc_DynamicForm_handleClick @ ISC_Combined.js:8198isc_c_EventHandler_bubbleEvent @ ISC_Combined.js:1336isc_c_EventHandler_handleClick @ ISC_Combined.js:1202isc_c_EventHandler__handleMouseUp @ ISC_Combined.js:1191isc_c_EventHandler_handleMouseUp @ ISC_Combined.js:1185isc_c_EventHandler_dispatch @ ISC_Combined.js:1410(anonymous function) | |||||||
Tags | Performance | |||||||
Attached Files | UpdateCharacteristics.png [^] (152,445 bytes) 2016-02-05 15:10
Selection_057.png [^] (132,151 bytes) 2016-02-26 10:21 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0084511) alostale (manager) 2016-02-25 14:36 |
I can't reproduce the issue locally neither in live.builds. Can you provide more information about the environment you reproduce it? Also it would be useful to get: - openbravo.log if something appears there - js errors if any - request performed when opening the drop down, with the time it took and response |
(0084559) alostale (manager) 2016-02-26 12:07 |
4 requests to create datasource are executed for each field shown in the popup. Duplication is caused by [1], where there are two invocations to super, each of them result in 2 calls for ds creation. [1] https://code.openbravo.com/erp/devel/pi/file/fd863146a4f4/web/js/productCharacteristicsProcess.js#l171 [^] |
(0089480) hgbot (developer) 2016-08-29 09:31 |
Repository: erp/devel/pi Changeset: f945e4c7788eb722cc9e08edbce0bc173e4f3650 Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com> Date: Tue Aug 23 16:15:02 2016 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/f945e4c7788eb722cc9e08edbce0bc173e4f3650 [^] Fixed issue 32153: Update Characteristic process was not working fine There were 4 request to create datasources for each characteristic, this was happening on one hand because there were two calls to the super and also because call to OB.Datasource.get() was being executed in two different places. Removing the duplicated super fixed part of the problem, to fix the other part, now a condition has been added in the ob-tree-item class. This condition checks if there is a concrete property (showPopupIconWindow) set to false. If it is set to false the magnifying glass icon will not be created and the OBTreeItemPopupWindow neither, so the uneeded call to the OB.Datasource.get() will not be done. There was another problem also, if the dropdown of a characteristic was clicked before the creation of the datasource, it was showing the message "No items to show" and a js error in the console. To fix this, a condition has been added. The condition checks if there exists a datasource and clicking the dropdown will not work until a datasource exist. --- M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-tree.js M web/js/productCharacteristicsProcess.js --- |
(0089518) hudsonbot (developer) 2016-08-29 21:02 |
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/bc86301d6ff4 [^] Maturity status: Test |
(0089550) alostale (manager) 2016-08-30 12:42 |
code reviewed Tested in update characteristics popup as well as in tree reference selector drop down and popup. |
Issue History | |||
Date Modified | Username | Field | Change |
2016-02-05 15:10 | lorenzofidalgo | New Issue | |
2016-02-05 15:10 | lorenzofidalgo | Assigned To | => platform |
2016-02-05 15:10 | lorenzofidalgo | File Added: UpdateCharacteristics.png | |
2016-02-05 15:10 | lorenzofidalgo | Web browser | => Google Chrome |
2016-02-05 15:10 | lorenzofidalgo | Modules | => Core |
2016-02-05 15:10 | lorenzofidalgo | Triggers an Emergency Pack | => No |
2016-02-25 14:36 | alostale | Note Added: 0084511 | |
2016-02-25 14:36 | alostale | Assigned To | platform => lorenzofidalgo |
2016-02-25 14:36 | alostale | Status | new => feedback |
2016-02-26 10:20 | alostale | Web browser | Google Chrome => Google Chrome |
2016-02-26 10:20 | alostale | Steps to Reproduce Updated | View Revisions |
2016-02-26 10:21 | alostale | File Added: Selection_057.png | |
2016-02-26 10:21 | alostale | Assigned To | lorenzofidalgo => platform |
2016-02-26 10:21 | alostale | Status | feedback => new |
2016-02-26 10:22 | alostale | Status | new => acknowledged |
2016-02-26 12:01 | alostale | Relationship added | related to 0027490 |
2016-02-26 12:07 | alostale | Note Added: 0084559 | |
2016-06-23 10:11 | NaroaIriarte | Assigned To | platform => NaroaIriarte |
2016-07-07 09:11 | NaroaIriarte | Status | acknowledged => scheduled |
2016-08-29 09:31 | hgbot | Checkin | |
2016-08-29 09:31 | hgbot | Note Added: 0089480 | |
2016-08-29 09:31 | hgbot | Status | scheduled => resolved |
2016-08-29 09:31 | hgbot | Resolution | open => fixed |
2016-08-29 09:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f945e4c7788eb722cc9e08edbce0bc173e4f3650 [^] |
2016-08-29 21:02 | hudsonbot | Checkin | |
2016-08-29 21:02 | hudsonbot | Note Added: 0089518 | |
2016-08-30 12:39 | alostale | Tag Attached: Performance | |
2016-08-30 12:42 | alostale | Review Assigned To | => alostale |
2016-08-30 12:42 | alostale | Note Added: 0089550 | |
2016-08-30 12:42 | alostale | Status | resolved => closed |
2016-08-30 12:42 | alostale | Fixed in Version | => 3.0PR16Q4 |
2018-09-10 10:00 | caristu | Relationship added | related to 0039227 |
Copyright © 2000 - 2009 MantisBT Group |