Project: 	
  | View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0022131 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] 01. General setup | major | always | 2012-10-29 11:18 | 2012-11-20 20:53 | |||
| Reporter | caristu | View Status | public | |||||
| Assigned To | shankarb | |||||||
| Priority | urgent | Resolution | fixed | Fixed in Version | 3.0MP18 | |||
| Status | closed | Fix in branch | pi | Fixed in SCM revision | 13c3d71a21b2 | |||
| Projection | none | ETA | none | Target Version | 3.0MP18 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | pi | SCM revision | ||||||
| Merge Request Status | ||||||||
| Review Assigned To | dbaz | |||||||
| OBNetwork customer | OBPS | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | 17688 | |||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0022131: AD_Tab_Access for inactive tabs is causing javascript errors | |||||||
| Description | If we mark as inactive a tab that is included in the tab_access for a particular role causes the following error when accessing to the window that includes the tab: "Cannot read property 'viewForm' of null" In same cases this error prohibits the access to the window when accessing a second time. | |||||||
| Steps To Reproduce | - As group admin role, go to the [Role] window - Create a record in [Window Access] tab for an specific role (i.e Sales Role) and for an specific window (i.e Business Partner). - Add a record in [Tab Access] window for any tab in Business Partner Window (i.e Customer) - Go as a System Administrator and set Active = 'N' for the tab Customer in Business Partner Window. - Log in as Sales Role and navigate to the Business Partner Window. The following javascript error is thrown (use Google Chrome Developer Tools): "Uncaught TypeError: Cannot read property 'viewForm' of null " | |||||||
| Proposed Solution | This error is caused in the following line of the ob-standard-window.js file: for (i = 0; i < view.viewForm.getFields().length; i++) { view in null, because we are assigning its value with the following statement: view = this.getView(tab.tabId); we can't get the tab view because is set as inactive. This problem is solved if we just add a condition to check if view is null before accesing to its fields: if (view != null){ for (i = 0; i < view.viewForm.getFields().length; i++) { .... } | |||||||
| Tags | No tags attached. | |||||||
| Attached Files |  FixIssue22131.diff [^] (4,550 bytes) 2012-11-08 14:34 [Show Content] | |||||||
|  Relationships		[ Relation Graph ] 
		[ Dependency Graph ] | |
|  Issue History | |||
| Date Modified | Username | Field | Change | 
| 2012-10-29 11:18 | caristu | New Issue | |
| 2012-10-29 11:18 | caristu | Assigned To | => dmiguelez | 
| 2012-10-29 11:18 | caristu | Modules | => Core | 
| 2012-10-29 11:18 | caristu | OBNetwork customer | => Yes | 
| 2012-10-29 11:18 | caristu | Support ticket | => 17688 | 
| 2012-10-29 11:18 | caristu | Resolution time | => 1354230000 | 
| 2012-10-29 11:18 | caristu | Issue Monitored: networkb | |
| 2012-10-29 11:23 | dmiguelez | Assigned To | dmiguelez => jonalegriaesarte | 
| 2012-10-29 11:46 | jonalegriaesarte | Assigned To | jonalegriaesarte => AugustoMauch | 
| 2012-11-08 11:15 | shankarb | Assigned To | AugustoMauch => shankarb | 
| 2012-11-08 14:34 | shankarb | File Added: FixIssue22131.diff | |
| 2012-11-12 15:58 | shankarb | Review Assigned To | => dbaz | 
| 2012-11-12 15:58 | shankarb | Issue Monitored: dbaz | |
| 2012-11-12 15:59 | shankarb | Status | new => scheduled | 
| 2012-11-12 15:59 | shankarb | fix_in_branch | => pi | 
| 2012-11-12 15:59 | shankarb | Status | scheduled => resolved | 
| 2012-11-12 15:59 | shankarb | Fixed in Version | => pi | 
| 2012-11-12 15:59 | shankarb | Fixed in SCM revision | => https://code.openbravo.com/erp/devel/pi/rev/13c3d71a21b2 [^] | 
| 2012-11-12 15:59 | shankarb | Resolution | open => fixed | 
| 2012-11-20 20:53 | dbaz | Note Added: 0054353 | |
| 2012-11-20 20:53 | dbaz | Status | resolved => closed | 
| 2012-11-20 20:53 | dbaz | Fixed in Version | pi => 3.0MP18 | 
| Copyright © 2000 - 2009 MantisBT Group |