From 945a091c94a9ed651f61e225fa8646479478e9d4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 4 Nov 2015 18:40:15 +0000 Subject: 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 --- app/views/timelog/_form.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/views') 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 %>

<%= f.text_field :issue_id, :size => 6 %> - <%= "#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}" if @time_entry.issue.try(:visible?) %> + <% if @time_entry.issue.try(:visible?) %> + <%= "#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}" %> + <% end %>

<%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %>

<%= f.text_field :hours, :size => 6, :required => true %>

-- cgit v1.2.3