Merge pull request #66 from koledas/patch-1
Fix Issue #65 (intersection of the sets of required attributes and those that the user can edit)
This commit is contained in:
commit
364c73ca87
@ -35,7 +35,7 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener
|
||||
if issue_id
|
||||
issue = Issue.find(issue_id)
|
||||
readOnlyAttributes = issue.read_only_attribute_names(User.current)
|
||||
requiredAttributes = issue.required_attribute_names(User.current)
|
||||
requiredAttributes = issue.required_attribute_names(User.current) & issue.safe_attribute_names(User.current)
|
||||
|
||||
# o << requiredAttributes.to_json
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user