Feature #588 » timelog_controller.rb.patch
| timelog_controller.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
@activities = Enumeration::get_values('ACTI')
|
||
|
end
|
||
|
|
||
|
# Delete @timelog
|
||
|
def destroy
|
||
|
render_404 and return if @time_entry && @time_entry.user != User.current
|
||
|
@time_entry_to_destroy = @time_entry
|
||
|
if request.post? and params[:confirm]
|
||
|
@time_entry_to_destroy.destroy
|
||
|
redirect_to :controller => 'my', :action => 'page'
|
||
|
end
|
||
|
#hide time_entry in layout
|
||
|
@time_entry = nil
|
||
|
end
|
||
|
|
||
|
private
|
||
|
def find_project
|
||