Skip to content

Commit

Permalink
Improve #3
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Aug 11, 2022
1 parent a8d2320 commit b6acc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def users_by_role
# Returns an AR scope of all custom fields enabled for project's work packages
# (explicitly associated custom fields and custom fields enabled for all projects)
def all_work_package_custom_fields
WorkPackageCustomField
@all_work_package_custom_fields ||= WorkPackageCustomField
.for_all
.or(WorkPackageCustomField.where(id: work_package_custom_fields))
end
Expand Down

0 comments on commit b6acc27

Please sign in to comment.