diff options
Diffstat (limited to 'app/helpers/timelog_helper.rb')
-rw-r--r-- | app/helpers/timelog_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb index 9cdfa9c13..cb79a545a 100644 --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb @@ -42,6 +42,11 @@ module TimelogHelper collection end + def user_collection_for_select_options(time_entry) + collection = time_entry.assignable_users + principals_options_for_select(collection, time_entry.user_id) + end + def select_hours(data, criteria, value) if value.to_s.empty? data.select {|row| row[criteria].blank? } |