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:
Hugo Zilliox 2020-05-14 18:10:34 +02:00 committed by GitHub
commit 364c73ca87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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