additionals/app/views/reports/_additionals_simple.html.slim
2023-12-05 21:06:07 +01:00

12 lines
391 B
Plaintext

ruby:
case field_name
when 'assigned_to_id'
rows = if Setting.issue_group_assignment? # rubocop: disable Lint/UselessAssignment
@project.visible_principals
else
@project.visible_users
end + [User.new(firstname: "[#{l :label_none}]")]
when 'author_id'
rows = @project.visible_users # rubocop: disable Lint/UselessAssignment
end