@@ -232,7 +232,7 private | |||||
232 | end |
|
232 | end | |
233 |
|
233 | |||
234 | def find_time_entries |
|
234 | def find_time_entries | |
235 |
@time_entries = TimeEntry. |
|
235 | @time_entries = TimeEntry.where(:id => params[:id] || params[:ids]).all | |
236 | raise ActiveRecord::RecordNotFound if @time_entries.empty? |
|
236 | raise ActiveRecord::RecordNotFound if @time_entries.empty? | |
237 | @projects = @time_entries.collect(&:project).compact.uniq |
|
237 | @projects = @time_entries.collect(&:project).compact.uniq | |
238 | @project = @projects.first if @projects.size == 1 |
|
238 | @project = @projects.first if @projects.size == 1 |
General Comments 0
You need to be logged in to leave comments.
Login now