Use the id field as project_key in ProjectCustomField#visibility_by_project_condition by default (#29161).

Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17517 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2018-09-24 05:31:13 +00:00
parent 5282a45b9b
commit c76c0900bb
2 changed files with 21 additions and 0 deletions

View File

@@ -19,4 +19,9 @@ class ProjectCustomField < CustomField
def type_name
:label_project_plural
end
def visibility_by_project_condition(project_key=nil, user=User.current, id_column=nil)
project_key ||= "#{Project.table_name}.id"
super(project_key, user, id_column)
end
end