@@ -112,7 +112,7 class IssuesController < ApplicationController | |||
|
112 | 112 | @allowed_statuses = @issue.new_statuses_allowed_to(User.current) |
|
113 | 113 | @edit_allowed = User.current.allowed_to?(:edit_issues, @project) |
|
114 | 114 | @priorities = IssuePriority.all |
|
115 | @time_entry = TimeEntry.new | |
|
115 | @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) | |
|
116 | 116 | respond_to do |format| |
|
117 | 117 | format.html { render :template => 'issues/show.rhtml' } |
|
118 | 118 | format.api |
@@ -265,7 +265,7 private | |||
|
265 | 265 | @allowed_statuses = @issue.new_statuses_allowed_to(User.current) |
|
266 | 266 | @priorities = IssuePriority.all |
|
267 | 267 | @edit_allowed = User.current.allowed_to?(:edit_issues, @project) |
|
268 | @time_entry = TimeEntry.new | |
|
268 | @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) | |
|
269 | 269 | @time_entry.attributes = params[:time_entry] |
|
270 | 270 | |
|
271 | 271 | @notes = params[:notes] || (params[:issue].present? ? params[:issue][:notes] : nil) |
General Comments 0
You need to be logged in to leave comments.
Login now