Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035064Openbravo ERPC. Securitypublic2017-01-17 10:142017-02-01 16:03
egoitz 
inigosanchez 
urgentminoralways
closedfixed 
5
 
3.0PR17Q13.0PR17Q1 
alostale
Core
Production - Confirmed Stable
2016-06-15
3.0PR16Q3
https://code.openbravo.com/erp/devel/pi/rev/463564b77a032485223cc070cf0aa66f6f0e03d8 [^]
No
0035064: A deactivated organization can not be activated again.
If you deactivate an organization you can not activate it again as the row is not ediable.
-Access on an application with F&B data
-Using admin role deactivate the España sur organization
-Logout and login with the same role.
-check that the España sur organization is not editable so you can not activate it
No tags attached.
blocks defect 0034977 closed inigosanchez A deactivated organization can not be activated again. 
Issue History
2017-01-27 01:01inigosanchezTypedefect => backport
2017-01-27 01:01inigosanchezTarget Version => 3.0PR17Q1
2017-01-27 01:45inigosanchezReview Assigned To => caristu
2017-01-27 01:47hgbotCheckin
2017-01-27 01:47hgbotNote Added: 0093856
2017-01-27 01:47hgbotStatusscheduled => resolved
2017-01-27 01:47hgbotResolutionopen => fixed
2017-01-27 01:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q1/rev/ed3a6269a490a16540a7a837a6ca43672fa8f539 [^]
2017-01-27 11:54inigosanchezReview Assigned Tocaristu => alostale
2017-02-01 16:03alostaleNote Added: 0093992
2017-02-01 16:03alostaleStatusresolved => closed
2017-02-01 16:03alostaleFixed in Version => 3.0PR17Q1

Notes
(0093856)
hgbot   
2017-01-27 01:47   
Repository: erp/backports/3.0PR17Q1
Changeset: ed3a6269a490a16540a7a837a6ca43672fa8f539
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Jan 27 01:47:07 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1/rev/ed3a6269a490a16540a7a837a6ca43672fa8f539 [^]

Fixed issue 35064: A deactivated organization can not be activated again.

When an organization was disabled you could not activate it again as the row was not ediable. This
problem was introduced in a fix related with the code of addWritableAttribute() method of
DefaultJsonDataService class. Before this fix, It was managing the reported case properly (Activate
again a deactivated organization) because this method was handling the particular case of Organizations.

Now is taking into account this particular case (deactivate organizations) in order to manages this
particular case properly. Now it is possible to activate again a deactivate organization.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M src/org/openbravo/dal/core/OBContext.java
M src/org/openbravo/dal/security/SecurityChecker.java
---
(0093992)
alostale   
2017-02-01 16:03   
tested