Project: 	
  | View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | |||||||||||
| 0031213 | |||||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
| defect | [Openbravo ERP] A. Platform | minor | have not tried | 2015-10-22 10:02 | 2022-02-01 08:05 | ||||||
| Reporter | alostale | View Status | public | ||||||||
| Assigned To | Triage Platform Base | ||||||||||
| Priority | normal | Resolution | open | Fixed in Version | |||||||
| Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
| Projection | none | ETA | none | Target Version | |||||||
| OS | Any | Database | Any | Java version | |||||||
| OS Version | Database version | Ant version | |||||||||
| Product Version | SCM revision | ||||||||||
| Merge Request Status | |||||||||||
| Review Assigned To | |||||||||||
| OBNetwork customer | No | ||||||||||
| Web browser | |||||||||||
| Modules | Core | ||||||||||
| Support ticket | |||||||||||
| Regression level | |||||||||||
| Regression date | |||||||||||
| Regression introduced in release | |||||||||||
| Regression introduced by commit | |||||||||||
| Triggers an Emergency Pack | No | ||||||||||
| Summary | 0031213: js error opening selector popup having a tree column in selector's grid | ||||||||||
| Description | When the grid of the selector contains a column that has been defined with "reference" tree reference and "reference search key" =Producto Category Tree selector, when opening the grid selector there is a js error in console.  | ||||||||||
| Steps To Reproduce | -Define a reference which type is "Tree Reference" and "m_product_category" table as tree reference. Call it "Product Category Tree Selector". -Change the definition of the m_product_category_id column on the m_product by changing the reference to "Tree reference" and the reference search key to "Product Category Tree Selector". -Recompile the application. -Go to List price window. -Open browser's developers tools -go to the product price subtab and open the selector popup. -> This error is thrown: Uncaught TypeError: Cannot read property 'inheritsFrom' of undefinedisc.OBTreeGrid.addProperties.transformData @ a8099e032b79e5deb99dc5875593a274.js:19228isc.ResultTree.addProperties.dataArrived @ a8099e032b79e5deb99dc5875593a274.js:2413observation @ Class.js:2350isc.ResultTree.addMethods.loadChildrenReply @ ResultTree.js:1336isc.ResultTree.addProperties.loadChildrenReply @ a8099e032b79e5deb99dc5875593a274.js:2393isc.Class.addClassMethods.fireCallback @ Class.js:1789isc.Class.addMethods.fireCallback @ Class.js:3488isc.DataSource.addMethods.fireResponseCallbacks @ DataSource.js:13641isc.DataSource.addMethods._completeResponseProcessing @ DataSource.js:13599isc.DataSource.addMethods._handleJSONReply @ DataSource.js:11651isc.DataSource.addMethods._handleJSONTextReply @ DataSource.js:11744isc.Class.addClassMethods.fireCallback @ Class.js:1789isc.Class.addMethods.fireCallback @ Class.js:3488isc.RPCManager.addClassMethods.fireReplyCallback @ RPCManager.js:4273isc.RPCManager.addClassMethods.fireReplyCallbacks @ RPCManager.js:4336isc.RPCManager.addClassMethods.performOperationReply @ RPCManager.js:4265isc.RPCManager.addClassMethods._performTransactionReply @ RPCManager.js:4178isc.RPCManager.addClassMethods.performTransactionReply @ RPCManager.js:3595(anonymous function) @ VM5564:3isc.Class.addClassMethods.fireCallback @ Class.js:1789isc.Comm.addClassMethods.performXmlTransactionReply @ Comm.js:383(anonymous function) @ VM5563:3isc.Class.addClassMethods.fireCallback @ Class.js:1792isc.Comm.addClassMethods._fireXMLCallback @ Comm.js:85loadFunc @ Comm.js:303XMLHttpRequest.send (async)isc.Comm.addClassMethods.sendXmlHttpRequest @ Comm.js:351isc.RPCManager.addClassMethods._sendQueue @ RPCManager.js:3365isc.RPCManager.addClassMethods.sendQueue @ RPCManager.js:3134isc.RPCManager.addClassMethods.sendRequest @ RPCManager.js:2138isc.RPCManager.addClassMethods.sendProxied @ RPCManager.js:1956isc.DataSource.addMethods.sendDSRequest @ DataSource.js:15000isc.Class.addClassMethods.invokeSuper @ Class.js:1550isc.Class.addClassMethods.Super @ Class.js:1368isc.OBRestDataSource.addProperties.sendDSRequest @ a8099e032b79e5deb99dc5875593a274.js:3394isc.DataSource.addMethods.performDSOperation @ DataSource.js:14654isc.DataSource.addMethods.fetchData @ DataSource.js:14061isc.ResultTree.addMethods._loadChildren @ ResultTree.js:1167isc.Tree.addMethods.loadChildren @ Tree.js:3281isc.Tree.addMethods.changeDataVisibility @ Tree.js:3504isc.Class.addClassMethods.invokeSuper @ Class.js:1558isc.ResultTree.addMethods.changeDataVisibility @ ResultTree.js:2430observation @ Class.js:2350isc.Tree.addMethods.openFolder @ Tree.js:3539isc.Tree.addMethods.setRoot @ Tree.js:1397isc.Class.addClassMethods.invokeSuper @ Class.js:1558isc.ResultTree.addMethods.setRoot @ ResultTree.js:2357isc.ResultTree.addMethods.invalidateCache @ ResultTree.js:1378isc.Canvas.addProperties.invalidateCache @ DataBoundComponent.js:3806isc.Class.addClassMethods.invokeSuper @ Class.js:1550isc.Class.addClassMethods.Super @ Class.js:1368isc.ListGrid.addMethods.invalidateCache @ ListGrid.js:12930isc.OBTreeItemPopupFilterWindow.addProperties.show @ a8099e032b79e5deb99dc5875593a274.js:20645isc.OBTreeFilterItem.addProperties.showDialog @ a8099e032b79e5deb99dc5875593a274.js:20792isc.OBTreeFilterItem.addProperties.pickerIconDefaults.click @ a8099e032b79e5deb99dc5875593a274.js:20729isc.FormItem.addMethods._iconClick @ FormItem.js:11224isc.DynamicForm.addMethods.handleClick @ DynamicForm.js:7899isc.EventHandler.addClassMethods.bubbleEvent @ EventHandler.js:4746isc.EventHandler.addClassMethods.handleClick @ EventHandler.js:2614isc.EventHandler.addClassMethods._handleMouseUp @ EventHandler.js:2384isc.EventHandler.addClassMethods.handleMouseUp @ EventHandler.js:2269isc.EventHandler.addClassMethods.dispatch @ EventHandler.js:6147(anonymous function) @ VM160:3  | ||||||||||
| Proposed Solution | The error is in isc.OBTreeGrid.transformData: for (i = 0; i < this.getFields().length; i++) { type = isc.SimpleType.getType(this.getFields()[i].type); if (type.inheritsFrom === 'date' || type.inheritsFrom === 'datetime') { dateFields.add(this.getFields()[i].name); } There type is undefined in this case.  | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
		  Relationships		[ Relation Graph ] 
		[ Dependency Graph ] 
			 | 
||||||||
  | 
||||||||
  Issue History	 | 
|||
| Date Modified | Username | Field | Change | 
| 2015-10-22 10:02 | alostale | New Issue | |
| 2015-10-22 10:02 | alostale | Assigned To | => platform | 
| 2015-10-22 10:02 | alostale | OBNetwork customer | => No | 
| 2015-10-22 10:02 | alostale | Modules | => Core | 
| 2015-10-22 10:02 | alostale | Triggers an Emergency Pack | => No | 
| 2015-10-22 10:03 | alostale | Relationship added | related to 0030933 | 
| 2015-10-22 10:03 | alostale | Assigned To | platform => NaroaIriarte | 
| 2015-10-22 10:03 | alostale | Status | new => acknowledged | 
| 2015-11-11 12:13 | alostale | Assigned To | NaroaIriarte => platform | 
| 2022-02-01 08:05 | alostale | Assigned To | platform => Triage Platform Base | 
| Copyright © 2000 - 2009 MantisBT Group |