summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-04 18:40:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-04 18:40:15 +0000
commit945a091c94a9ed651f61e225fa8646479478e9d4 (patch)
tree146eb7f80fc8ed8f5b7c9289ca360e766448bbbc /app/views
parentc096dde88ff02872ba35edc4dc403c80a7867b5c (diff)
downloadredmine-945a091c94a9ed651f61e225fa8646479478e9d4.tar.gz
redmine-945a091c94a9ed651f61e225fa8646479478e9d4.zip
Don't let users log time on issues they cannot see in their projects (#21150).
git-svn-id: http://svn.redmine.org/redmine/trunk@14796 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/timelog/_form.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/timelog/_form.html.erb b/app/views/timelog/_form.html.erb
index 0dbff35a7..ac6ba9154 100644
--- a/app/views/timelog/_form.html.erb
+++ b/app/views/timelog/_form.html.erb
@@ -13,7 +13,9 @@
<% end %>
<p>
<%= f.text_field :issue_id, :size => 6 %>
- <span id="time_entry_issue"><%= "#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}" if @time_entry.issue.try(:visible?) %></span>
+ <% if @time_entry.issue.try(:visible?) %>
+ <span id="time_entry_issue"><%= "#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}" %></span>
+ <% end %>
</p>
<p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
<p><%= f.text_field :hours, :size => 6, :required => true %></p>