Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022851Openbravo ERPA. Platformpublic2013-01-21 10:502013-03-05 09:30
psarobe 
AugustoMauch 
urgentmajoralways
closedopen 
5
 
 
Core
No
0022851: Tab line that has a button (P&E) is not showing it when the tab does only have one record
It look likes the system doesn't notice that there is one record. When there are two records then the button is shown

* Reservations are disabled by default. To be able to use them please insert a new Preference using property Enable Stock Reservations with value Y
1. Enter a preference as F&B Admin: Property: Enable Stock Reservations, Value:Y
2. Log out and log in
3. Go to Sales order
4. Create a header and save
5. Create one line and save
6. Book the order
7. Move focus to the line and see that there is no "Manage reservations" button. THIS IS WRONG

Expected behaviour: The button should be shown

If you create two lines instead of one or you refresh then you see the button
No tags attached.
duplicate of defect 00226553.0MP21 closed AugustoMauch Display problems in window G/L Journal window 
Issue History
2013-01-21 10:50psarobeNew Issue
2013-01-21 10:50psarobeAssigned To => AugustoMauch
2013-01-21 10:50psarobeModules => Core
2013-01-21 10:50psarobeTriggers an Emergency Pack => No
2013-02-05 17:23AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4368#r4368
2013-03-04 10:00ioritzCiaRelationship addedblocks 0022655
2013-03-04 12:53AugustoMauchRelationship replacedduplicate of 0022655
2013-03-04 12:55AugustoMauchNote Added: 0056994
2013-03-04 12:55AugustoMauchStatusnew => closed
2013-03-04 12:56hgbotCheckin
2013-03-04 12:56hgbotNote Added: 0056996
2013-03-04 12:56hgbotStatusclosed => resolved
2013-03-04 12:56hgbotResolutionopen => fixed
2013-03-04 12:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b9dcfdaae170510c27e26433c77b76bb96903b6c [^]
2013-03-04 13:40AugustoMauchStatusresolved => new
2013-03-04 13:40AugustoMauchResolutionfixed => open
2013-03-04 13:40AugustoMauchStatusnew => closed
2013-03-05 09:30hudsonbotCheckin
2013-03-05 09:30hudsonbotNote Added: 0057024

Notes
(0056994)
AugustoMauch   
2013-03-04 12:55   
This issue is a duplicate of 22655.

22851 was reported before 22655, but 22655 can not be rejected as duplicate because it is an OBNetwork issue.
(0056996)
hgbot   
2013-03-04 12:56   
Repository: erp/devel/pi
Changeset: b9dcfdaae170510c27e26433c77b76bb96903b6c
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Mar 04 12:52:56 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b9dcfdaae170510c27e26433c77b76bb96903b6c [^]

Fixes bug 22655, fixes bug 22851. Display logic works correct with one record.

When a record is clicked, it is selected and a call to the FIC is done in SETSESSION mode. This call returns with the form session variables. The problem is th
at when there is only one row in the grid, it is automatically selected and no call to the FIC is done in SETSESSION mode.

This was happening in this issue, so the button whose display logic used session variables was not working properly. Only when the grid was refreshed the call
to the FIC is SETSESSION mode was done.

This has been fixed by making a call to updateButtonState(false, false, true) when data is received from the dataset being returned only one row. This call wil
l result in a call to the fic in SETSESSION mode. The first argument ensures that the SETSESSION call is made, the second one is not used and the third one ens
ures that the call is made even if the view is being updated is not the active one.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0057024)
hudsonbot   
2013-03-05 09:30   
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/e5bdfce74ee2 [^]

Maturity status: Test