Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020029Openbravo ERPB. User interfacepublic2012-03-15 09:482012-04-02 06:12
plujan 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
main 
3.0MP10 
Internet Explorer
Core
No
0020029: It is possible to expand bottom section even if there are no tabs
On windows with three or more levels it is possible to expand bottom section to see those tabs' contents. However in a two level windows, it has no sense at all to expand an empty section.
1. Go to Business Partner window
2. Go to Customer tab
3. Check there are no other tabs below Customer
4. Click the grey bar on the bottom. The section is expanded. See screenshot.
No tags attached.
png Empty_Section_Click.png (49,910) 2012-03-15 09:48
https://issues.openbravo.com/file_download.php?file_id=5082&type=bug
png
Issue History
2012-03-15 09:48plujanNew Issue
2012-03-15 09:48plujanAssigned To => AugustoMauch
2012-03-15 09:48plujanFile Added: Empty_Section_Click.png
2012-03-15 09:48plujanWeb browser => Internet Explorer
2012-03-15 09:48plujanModules => Core
2012-03-15 18:06AugustoMauchNote Added: 0046476
2012-03-20 11:32hgbotCheckin
2012-03-20 11:32hgbotNote Added: 0046535
2012-03-20 11:32hgbotStatusnew => resolved
2012-03-20 11:32hgbotResolutionopen => fixed
2012-03-20 11:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c459bea5041f670caa664cb28223ac5aa62a2032 [^]
2012-03-20 11:43AugustoMauchNote Added: 0046536
2012-03-20 11:46AugustoMauchNote Added: 0046537
2012-03-26 12:23hgbotCheckin
2012-03-26 12:23hgbotNote Added: 0046728
2012-03-28 11:55alostaleNote Added: 0046810
2012-03-28 15:10hgbotCheckin
2012-03-28 15:10hgbotNote Added: 0046836
2012-03-28 17:21alostaleNote Added: 0046845
2012-03-28 17:21alostaleStatusresolved => closed
2012-03-28 17:21alostaleFixed in Version => 3.0MP10
2012-04-02 06:10hudsonbotCheckin
2012-04-02 06:10hudsonbotNote Added: 0047166
2012-04-02 06:12hudsonbotCheckin
2012-04-02 06:12hudsonbotNote Added: 0047232
2012-04-02 06:12hudsonbotCheckin
2012-04-02 06:12hudsonbotNote Added: 0047260

Notes
(0046476)
AugustoMauch   
2012-03-15 18:06   
In order to be able to reproduce the issue, the "Show accounting tabs" option has to be unchecked:
- Open Session Preferences
- Uncheck the "Show accounting tabs" checkbox.
- Save the preferences
(0046535)
hgbot   
2012-03-20 11:32   
Repository: erp/devel/pi
Changeset: c459bea5041f670caa664cb28223ac5aa62a2032
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 20 11:31:24 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c459bea5041f670caa664cb28223ac5aa62a2032 [^]

Fixes issue 20029: Tab bar is not created if it is not needed.

The hasChildTabs attribute initialized in ob-view-tab.js is used to decide whether a new tabset has to be created, and whether a view has to include a maximize/minimize button.
Prior to this fix, this attribute was set to true if the tab had any child, regardless of the type of the tab (accounting, translation or other (always visible). When a tab had only one accounting tab and the ShowAcct session preferences was false, the tabset was created even though it was not going to contain any visible tab.
Now, if a tab has only accounting or translation tabs, the value of hasChildTabs will depend on the value of the ShowAcct and ShowTrl session properties.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-tab.js.ftl
---
(0046536)
AugustoMauch   
2012-03-20 11:43   
Test plan:
1 - Login as F&B admin
2 - Open session preferences and uncheck the Show Accounting Tabs checkbox.
3 - Open Business Partner window
4 - There should not be a tab bar under the Customer tab.

5 - Login as system admin
6 - Open session preferences and uncheck the Show Translation Tabs checkbox.
7 - Open Windows, Tabs and Fields window
8 - There should not be a tab bar under the Field tab.
(0046537)
AugustoMauch   
2012-03-20 11:46   
Only the initialization of hasChildTabs has been modified. This attribute takes part in the creation of the windows. On one hand, it decides whether a tab bar should be created for the children of a tab. On the other hand, it is also used to decide whether a tab should include a maximize-minimize button.

Both parts work fine after the fix, so I think it is not risky.
(0046728)
hgbot   
2012-03-26 12:23   
Repository: erp/devel/pi
Changeset: f3875cc346c0924426a963a85e31d9be0d1f387e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Mar 26 12:22:11 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f3875cc346c0924426a963a85e31d9be0d1f387e [^]

Related to issue 20029: Moved fix from freemarker to java file

The logic of the fix has been moved from the .ftl file to the java file, for the sake of clarity and ease of debugging.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-tab.js.ftl
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
---
(0046810)
alostale   
2012-03-28 11:55   
Code review:
  -The standard way to populate ftl is through java class, not using ftl functions. Changed by f3875cc346c0924426a963a85e31d9be0d1f387e
  -Try to keep API as small as possible: don't add new public methods if they are used only internally in the class (hasAlwaysVisibleChildTab, hasAccountingChildTab and hasTranslationChildTab)
(0046836)
hgbot   
2012-03-28 15:10   
Repository: erp/devel/pi
Changeset: 5438f39cd04764a212126084f823ddd303bce40d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 28 15:09:37 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5438f39cd04764a212126084f823ddd303bce40d [^]

Related to issue 20029: Changed signature of some functions from public to private

Of the four functions created in the previous changeset (f3875cc346c0924426a963a85e31d9be0d1f387e), only one of them should be public. The other three functions have been changed to private, because they are only called from inside the class.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
---
(0046845)
alostale   
2012-03-28 17:21   
Code reviewed and verified on pi@5438f39cd047
(0047166)
hudsonbot   
2012-04-02 06:10   
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/7814864461ac [^]

Maturity status: Test
(0047232)
hudsonbot   
2012-04-02 06:12   
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/7814864461ac [^]

Maturity status: Test
(0047260)
hudsonbot   
2012-04-02 06:12   
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/7814864461ac [^]

Maturity status: Test