From d641af66ac47119b848b643e339d91bb5482ab24 Mon Sep 17 00:00:00 2001 From: Tobias Dillmann Date: Fri, 23 Jan 2026 17:23:02 +0100 Subject: [PATCH] [#70315] Properly pass the user for specs to stay green --- app/models/project_custom_field.rb | 3 ++- .../bulk_update_service.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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