Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028334
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] C. Securityminoralways2014-12-02 12:162014-12-30 23:27
ReporteregoitzView Statuspublic 
Assigned ToNaroaIriarte 
PrioritynormalResolutionfixedFixed in Version3.0PR15Q1
StatusclosedFix in branchFixed in SCM revisione2f6481d051b
ProjectionnoneETAnoneTarget Version3.0PR15Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028334: The default on unit of meassure window does not work when using a role with "organization" access level

DescriptionThe default on unit of meassure window does not work when using a role with "organization" access level
Steps To Reproduce-Login as system and see on the unit of measure window that unit is defined as default.
-Logout and login with Openbravo admin.
-Create a new user
-Create a new manual role with user level as "organization".
-Give acess to the produt window as editable
-Assign the user to the role and the parent organization (not only *)
-Logout
-Login with the new user
-go to the product window and click on new
*see that the default value of the unit of meassure field is the first one instead of the default.

-With a client/organization role it works properly
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0072263)
alostale (manager)
2014-12-03 14:34

The problem is when building the defaults the query uses writable organizations instead of referenceable ones.
(0072426)
hgbot (developer)
2014-12-11 14:58

Repository: erp/devel/pi
Changeset: e2f6481d051b83a5c053b36f299b8eacfb44f29b
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Thu Dec 11 13:05:07 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e2f6481d051b83a5c053b36f299b8eacfb44f29b [^]

Fixed issue 28334: The default value on UOM is not taken.

When the user level is chosen as "organization". The default value set in the Unit of Measure is not
taken when the user creates a new product. Instead of the default value of UOM the first one appears.

For fixing this the "LoginUtils" java class has been changed. The readable organizations were not taken into
account and that was the reason why the default value of the Unit of Measure was not taken into account when
a new product was created by the user with user level as "organization".

Now the readable organizatios are taken thanks to the "Utility.getContext(conn, vars, "#AccesibleOrgTree", "LoginHandler")"
code.
"#AccesibleOrgTree" has been put instead of "#User_Org", which is an string with the readable organizations inside.

Now when a user with user level as "organization" creates a new product, the default value of the UOM is
taken.

---
M src/org/openbravo/base/secureApp/LoginUtils.java
---
(0072427)
alostale (manager)
2014-12-11 15:02

code reviewed

tested following steps to reproduces, passed try to ensure it doesn't break continuous integration as this change could case different behavior in some cases: before not default was offered whereas now it is.
(0073209)
hudsonbot (developer)
2014-12-30 23:27

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/6525fe229e06 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-12-02 12:16 egoitz New Issue
2014-12-02 12:16 egoitz Assigned To => AugustoMauch
2014-12-02 12:16 egoitz Modules => Core
2014-12-02 12:16 egoitz Resolution time => 1423090800
2014-12-02 12:16 egoitz Triggers an Emergency Pack => No
2014-12-03 14:26 alostale Assigned To AugustoMauch => NaroaIriarte
2014-12-03 14:34 alostale Note Added: 0072263
2014-12-04 10:54 NaroaIriarte Steps to Reproduce Updated View Revisions
2014-12-11 14:58 hgbot Checkin
2014-12-11 14:58 hgbot Note Added: 0072426
2014-12-11 14:58 hgbot Status new => resolved
2014-12-11 14:58 hgbot Resolution open => fixed
2014-12-11 14:58 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e2f6481d051b83a5c053b36f299b8eacfb44f29b [^]
2014-12-11 15:02 alostale Review Assigned To => alostale
2014-12-11 15:02 alostale Note Added: 0072427
2014-12-11 15:02 alostale Status resolved => closed
2014-12-11 15:02 alostale Fixed in Version => 3.0PR15Q1
2014-12-30 23:27 hudsonbot Checkin
2014-12-30 23:27 hudsonbot Note Added: 0073209


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker