Fix rubocop warning

This commit is contained in:
Christophe Bliard
2025-10-30 10:08:10 +01:00
parent 02f8e5b4a4
commit 16fb1d28bf
@@ -63,19 +63,20 @@ module TableHelpers
end
def get_values(column, table_data)
if column.attribute == :schedule
case column.attribute
when :schedule
start_dates = table_data.values_for_attribute(:start_date)
due_dates = table_data.values_for_attribute(:due_date)
ignore_non_working_days_values = ignore_non_working_days_values(table_data)
start_dates.zip(due_dates, ignore_non_working_days_values).map do |start_date, due_date, ignore_non_working_days|
schedule_column_representer.span(start_date, due_date, ignore_non_working_days)
end
elsif column.attribute == :hierarchy
when :hierarchy
table_data
.values_for_attribute(:subject)
.zip(get_hierarchy_levels(table_data))
.map! { |subject, level| column.format("#{' ' * level}#{subject}") }
elsif column.attribute == :identifier
when :identifier
table_data.work_package_identifiers
.map! { |identifier| column.format(identifier) }
else