small comment explaining why we need to ensure used columns are present in procedure.columns
This commit is contained in:
parent
fa64e8f112
commit
aa0b7f53ef
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,7 @@ module ColumnsConcern
|
|||
columns.concat(procedure_chorus_columns) if chorusable? && chorus_configuration.complete?
|
||||
|
||||
# ensure the columns exist in main list
|
||||
# otherwise, they will be found by the find_column method
|
||||
columns.filter { _1.id.in?(self.columns.map(&:id)) }
|
||||
end
|
||||
|
||||
|
@ -48,6 +49,7 @@ module ColumnsConcern
|
|||
columns.concat([groupe_instructeurs_id_column, followers_instructeurs_email_column])
|
||||
|
||||
# ensure the columns exist in main list
|
||||
# otherwise, they will be found by the find_column method
|
||||
columns.filter { _1.id.in?(self.columns.map(&:id)) }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue