[#70315] Properly pass the user for specs to stay green

This commit is contained in:
Tobias Dillmann
2026-01-23 17:23:02 +01:00
parent d321c30dc7
commit d641af66ac
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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