mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
[#70315] Properly pass the user for specs to stay green
This commit is contained in:
@@ -63,9 +63,10 @@ class ProjectCustomField < CustomField
|
||||
end
|
||||
end
|
||||
|
||||
def toggleable_ids_in_project_settings(project, custom_field_section_id)
|
||||
def toggleable_ids_in_project_settings(project, user, custom_field_section_id)
|
||||
toggleable_ids(
|
||||
project:,
|
||||
user:,
|
||||
custom_field_section_id:,
|
||||
options: { is_for_all: false }
|
||||
).first
|
||||
|
||||
@@ -56,7 +56,7 @@ module ProjectCustomFieldProjectMappings
|
||||
|
||||
def perform_bulk_edit(service_call, params)
|
||||
action = params[:action]
|
||||
custom_field_ids = ProjectCustomField.toggleable_ids_in_project_settings(@project, @project_custom_field_section.id)
|
||||
custom_field_ids = ProjectCustomField.toggleable_ids_in_project_settings(@project, @user, @project_custom_field_section.id)
|
||||
|
||||
begin
|
||||
case action
|
||||
|
||||
Reference in New Issue
Block a user