Project

General

Profile

Defect #33341 » timelog_helper.diff

Thomas Löber, 2020-04-22 16:04

View differences:

app/helpers/timelog_helper.rb
def user_collection_for_select_options(time_entry)
collection = time_entry.assignable_users
collection << time_entry.user unless time_entry.user.nil? && !collection.include?(time_entry.user)
collection << time_entry.user if time_entry.user && !collection.include?(time_entry.user)
principals_options_for_select(collection, time_entry.user_id.to_s)
end
(1-1/3)