##// END OF EJS Templates
add controller for bulk edit time entries (#7996)....
Toshi MARUYAMA -
r5192:ab31a114fd9a
parent child
Show More
@@ -40,5 +40,18 class ContextMenusController < ApplicationController
40
40
41 render :layout => false
41 render :layout => false
42 end
42 end
43
43
44 def time_entries
45 @time_entries = TimeEntry.all(
46 :conditions => {:id => params[:ids]}, :include => :project)
47 @projects = @time_entries.collect(&:project).compact.uniq
48 @project = @projects.first if @projects.size == 1
49 @activities = TimeEntryActivity.shared.active
50 @can = {:edit => User.current.allowed_to?(:log_time, @projects),
51 :update => User.current.allowed_to?(:log_time, @projects),
52 :delete => User.current.allowed_to?(:log_time, @projects)
53 }
54 @back = back_url
55 render :layout => false
56 end
44 end
57 end
General Comments 0
You need to be logged in to leave comments. Login now