diff --git a/app/models/project_custom_field.rb b/app/models/project_custom_field.rb index a7b65d25bc8..30d7f8b35cc 100644 --- a/app/models/project_custom_field.rb +++ b/app/models/project_custom_field.rb @@ -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 diff --git a/app/services/project_custom_field_project_mappings/bulk_update_service.rb b/app/services/project_custom_field_project_mappings/bulk_update_service.rb index 245f6058ec2..a0f5f30f391 100644 --- a/app/services/project_custom_field_project_mappings/bulk_update_service.rb +++ b/app/services/project_custom_field_project_mappings/bulk_update_service.rb @@ -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