Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039662Openbravo ERPA. Platformpublic2018-11-21 11:582018-11-23 13:38
Leyre 
caristu 
urgentmajoralways
closedfixed 
5
 
3.0PR18Q3.33.0PR18Q3.3 
alostale
Core
Production - Confirmed Stable
2018-02-23
3.0PR18Q2
https://code.openbravo.com/erp/devel/pi/rev/4a1f3df29564b6dd12259981f941d0d5d74bebab [^]
No
0039662: Error deactivating an Organization
You can not consult information about an Organization that is deactivated
1. Log in to the Backoffice -> Openbravo/openbravo

https://livebuilds.openbravo.com/retail_mp_3.0RR18Q3.2/security/Login [^]

Role = The White Valley Group Admin - The White Valley Group

2. Deactivate an Organization, for example White Valley Spain S.A

3. End Session and log in again with the same user.

4. Check that the information of this Organization can not be consulted.

* This happens for example in the "Financial Account" window. You can not filter by White Valley Spain Organization.
This worked correctly in the 18Q1 version.
No tags attached.
blocks defect 0039660 closed caristu Error deactivating an Organization 
Issue History
2018-11-21 12:52caristuTypedefect => backport
2018-11-21 12:52caristuTarget Version => 3.0PR18Q3.3
2018-11-21 16:41hgbotCheckin
2018-11-21 16:41hgbotNote Added: 0108042
2018-11-21 16:41hgbotStatusscheduled => resolved
2018-11-21 16:41hgbotResolutionopen => fixed
2018-11-21 16:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR18Q3.3/rev/6d6e7e514811585488caeb60deecbb5f6b458416 [^]
2018-11-23 13:38alostaleNote Added: 0108083
2018-11-23 13:38alostaleStatusresolved => closed
2018-11-23 13:38alostaleFixed in Version => 3.0PR18Q3.3

Notes
(0108042)
hgbot   
2018-11-21 16:41   
Repository: erp/backports/3.0PR18Q3.3
Changeset: 6d6e7e514811585488caeb60deecbb5f6b458416
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Nov 21 16:40:57 2018 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR18Q3.3/rev/6d6e7e514811585488caeb60deecbb5f6b458416 [^]

fixes bug 39662: Standard DS isn't returning information of deactivated orgs

Before this changeset[1] access to inactive organization was being given because getOrganizationStructureProvider().getNaturalTree(o)) does not filter by active organizations.

Now that method is not being invoked when having direct access to "0" but the getOrganizations() method which indeed filters by active organizations.

In order to be consistent, now the getOrganizations() method does no longer filter by active.

[1] https://code.openbravo.com/erp/devel/pi/rev/4a1f3df29564b6dd12259981f941d0d5d74bebab [^]

---
M src/org/openbravo/dal/core/OBContext.java
---
(0108083)
alostale   
2018-11-23 13:38   
reviewed + tested