We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753afc2 commit 8249bdbCopy full SHA for 8249bdb
app/controllers/timelog_controller.rb
@@ -278,6 +278,7 @@ def find_time_entries
278
279
raise ActiveRecord::RecordNotFound if @time_entries.empty?
280
raise Unauthorized unless @time_entries.all? {|t| t.editable_by?(User.current)}
281
+
282
@projects = @time_entries.collect(&:project).compact.uniq
283
@project = @projects.first if @projects.size == 1
284
rescue ActiveRecord::RecordNotFound
0 commit comments