After log time redirect to spent time page and filter this week + user is me

parent 8c2c7d39
...@@ -126,7 +126,12 @@ class TimelogController < ApplicationController ...@@ -126,7 +126,12 @@ class TimelogController < ApplicationController
redirect_to new_time_entry_path(options) redirect_to new_time_entry_path(options)
end end
else else
redirect_back_or_default project_time_entries_path(@time_entry.project) redirect_to project_time_entries_path( project_id: @time_entry.project,
f: ["spent_on", "user_id", ""],
op: {"spent_on"=>"w", "user_id"=>"="},
v: {"user_id"=>["me"]},
)
# redirect_back_or_default project_time_entries_path(@time_entry.project)
end end
} }
format.api { render :action => 'show', :status => :created, :location => time_entry_url(@time_entry) } format.api { render :action => 'show', :status => :created, :location => time_entry_url(@time_entry) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment