additionals/app/views/reports/_additionals_simple.html.slim

12 lines
390 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