Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0024637 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2013-08-30 14:28 | 2013-09-27 14:15 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | shankarb | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0MP28 | |||
Status | closed | Fix in branch | pi | Fixed in SCM revision | 06606d1fa59d | |||
Projection | none | ETA | none | Target Version | 3.0MP28 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | AugustoMauch | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 23146 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0024637: Display Logic does not work in tabs located in windows that have several tabs referencing the same entity | |||||||
Description | Display logic is not working in those windows where the referenced table in the header is also referenced in another tab in the same window. | |||||||
Steps To Reproduce | As system administrator: 1) Go to [Windows, tabs and fields] and look for the Business Partner window (In this window, the c_bpartner table is referenced in the header and also in other tabs: Customer, Vendor and Employee) 2) Add a display logic for the Location/Address tab, for example: @Name2@='AA' Log-out and Log-in as group admin role 3) Go to the BusinessPartner window and notice that the display logic doesn't work | |||||||
Proposed Solution | In the KernelUtils.java class the entities referenced in tabs are stored inside the tabOfEntity hashMap, which stores the entity-tab relationship. When we have more than one entity referenced in the same window, the header reference is overwritten in the hash-map with the tab referencing the same entity. (Line 406: tabOfEntity.put(entity, aTab);) Attached is a patch that solves this problem, avoiding this override. But it must be checked if it is valid in all possible scenarios. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|||||||||||||||
|
![]() |
|
(0060880) shankarb (viewer) 2013-09-03 07:07 |
Issue fixed. Will be pushed in MP28. |
(0060924) hgbot (developer) 2013-09-05 06:34 |
Repository: erp/devel/pi Changeset: d208b0b6ef089881027acb04b58392058a9bfe98 Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com> Date: Mon Sep 02 09:48:15 2013 +0530 URL: http://code.openbravo.com/erp/devel/pi/rev/d208b0b6ef089881027acb04b58392058a9bfe98 [^] Fixes Issue 0024637: Display Logic does not work in tabs located in windows that have several tabs referencing the same entity When we have more than one entity referenced in the same window, the header reference is overwritten in the hash-map with the tab referencing the same entity. Overriding is prevented and only if entity is not found in the hash map, it is added. --- M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java --- |
(0061132) AugustoMauch (administrator) 2013-09-13 10:28 |
The code that was modified belongs to the getParentTab method of the KernelUtils class. Given a tab, this method returns its parent tab. Suppose this tab structure: [Tab1 | Entity1] | | - [Tab2 | Entity1] | | | | - [Tab3 | Entity2] | | - [Tab4 | Entity1] | | | | - [Tab5 | Entity3] | | - [Tab6 | Entity4] In this case, KernelUtils.getParentTab(tab3) would return tab1, because that is the class associated with the entity1, which is the referenced entity by the tab3 link to parent column. This issue can be closed when the getParentTab returns the following: getParentTab(tab1) => null getParentTab(tab2) => tab1 getParentTab(tab3) => tab2 getParentTab(tab4) => tab1 getParentTab(tab5) => tab4 getParentTab(tab6) => tab1 One way to achieve this would be to store in the tabOfEntity hash an array of tabs for each entity, and then adding some logic to, given an entity, selecting the proper parent tab, probably taking into account the tab level and the tab sequence number. |
(0061218) hudsonbot (viewer) 2013-09-17 19: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/1c53d622fc50 [^] Maturity status: Test |
(0061292) shankarb (viewer) 2013-09-19 11:28 |
Issue fixed in the changeset http://code.openbravo.com/erp/devel/pi/rev/06606d1fa59dc0e973c2033683e7e041672227f7 [^] . The other issue 24638 has been reopened becuase the fix does not solve the issue completely. |
(0061447) AugustoMauch (administrator) 2013-09-27 14:14 |
Code reviewed and verified in pi@34a6241c3e04 |
![]() |
|||
Date Modified | Username | Field | Change |
2013-08-30 14:28 | caristu | New Issue | |
2013-08-30 14:28 | caristu | Assigned To | => AugustoMauch |
2013-08-30 14:28 | caristu | File Added: tabIssue.diff | |
2013-08-30 14:28 | caristu | Modules | => Core |
2013-08-30 14:28 | caristu | OBNetwork customer | => Yes |
2013-08-30 14:28 | caristu | Support ticket | => 23146 |
2013-08-30 14:28 | caristu | Resolution time | => 1384383600 |
2013-08-30 14:28 | caristu | Triggers an Emergency Pack | => No |
2013-08-30 14:28 | caristu | Issue Monitored: networkb | |
2013-08-30 14:29 | caristu | Proposed Solution updated | |
2013-08-30 14:31 | caristu | Target Version | => 3.0MP28 |
2013-08-30 14:41 | caristu | Relationship added | related to 0024638 |
2013-08-30 14:42 | caristu | Priority | normal => high |
2013-09-01 07:37 | shankarb | Assigned To | AugustoMauch => shankarb |
2013-09-03 07:07 | shankarb | Status | new => scheduled |
2013-09-03 07:07 | shankarb | Note Added: 0060880 | |
2013-09-03 07:07 | shankarb | fix_in_branch | => pi |
2013-09-05 06:32 | shankarb | Review Assigned To | => AugustoMauch |
2013-09-05 06:32 | shankarb | fix_in_branch | pi => |
2013-09-05 06:32 | shankarb | Issue Monitored: AugustoMauch | |
2013-09-05 06:34 | hgbot | Checkin | |
2013-09-05 06:34 | hgbot | Note Added: 0060924 | |
2013-09-05 06:34 | hgbot | Status | scheduled => resolved |
2013-09-05 06:34 | hgbot | Resolution | open => fixed |
2013-09-05 06:34 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d208b0b6ef089881027acb04b58392058a9bfe98 [^] |
2013-09-13 10:14 | caristu | Relationship added | related to 0024763 |
2013-09-13 10:28 | AugustoMauch | Note Added: 0061132 | |
2013-09-13 10:28 | AugustoMauch | Status | resolved => new |
2013-09-13 10:28 | AugustoMauch | Resolution | fixed => open |
2013-09-17 19:02 | hudsonbot | Checkin | |
2013-09-17 19:02 | hudsonbot | Note Added: 0061218 | |
2013-09-19 11:27 | shankarb | Status | new => scheduled |
2013-09-19 11:27 | shankarb | fix_in_branch | => pi |
2013-09-19 11:28 | shankarb | Note Added: 0061292 | |
2013-09-19 11:28 | shankarb | Status | scheduled => resolved |
2013-09-19 11:28 | shankarb | Fixed in Version | => pi |
2013-09-19 11:28 | shankarb | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/d208b0b6ef089881027acb04b58392058a9bfe98 [^] => http://code.openbravo.com/erp/devel/pi/rev/06606d1fa59dc0e973c2033683e7e041672227f7 [^] |
2013-09-19 11:28 | shankarb | Resolution | open => fixed |
2013-09-27 14:14 | AugustoMauch | Note Added: 0061447 | |
2013-09-27 14:14 | AugustoMauch | Status | resolved => closed |
2013-09-27 14:15 | AugustoMauch | Fixed in Version | pi => 3.0MP28 |
2013-09-30 14:55 | AugustoMauch | Relationship replaced | has duplicate 0024763 |
Copyright © 2000 - 2009 MantisBT Group |