summaryrefslogtreecommitdiffstats
path: root/app/views/timelog/_form.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-09 17:12:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-09 17:12:24 +0000
commite06bf0c464184a457fa15efde1b7ddf8aede3f67 (patch)
tree07018b11aa8caf55f31935e9965e9b6f7c51109b /app/views/timelog/_form.html.erb
parentf1650b8ff48aec72afd83e17b07eca2b0b7d9b55 (diff)
downloadredmine-e06bf0c464184a457fa15efde1b7ddf8aede3f67.tar.gz
redmine-e06bf0c464184a457fa15efde1b7ddf8aede3f67.zip
Don't show the project dropdown when logging time on an issue.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10183 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog/_form.html.erb')
-rw-r--r--app/views/timelog/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/timelog/_form.html.erb b/app/views/timelog/_form.html.erb
index 8b1ed3a0a..7ecdd446d 100644
--- a/app/views/timelog/_form.html.erb
+++ b/app/views/timelog/_form.html.erb
@@ -3,7 +3,7 @@
<div class="box tabular">
<% if @time_entry.new_record? %>
- <% if params[:project_id] %>
+ <% if params[:project_id] || @time_entry.issue %>
<%= f.hidden_field :project_id %>
<% else %>
<p><%= f.select :project_id, project_tree_options_for_select(Project.allowed_to(:log_time).all, :selected => @time_entry.project), :required => true %></p>