Skip to content

Commit 1e8795a

Browse files
author
travis
committed
Report is only called on IssueController#Show
1 parent 33d006a commit 1e8795a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/spent_time/_javascript_report.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% if User.current.allowed_to?(:view_time_entries, @project) and @issue.time_entries.present? and ( Setting.plugin_redmine_spent_time_in_issue_description['report_location'].eql? "below_revisions" or Setting.plugin_redmine_spent_time_in_issue_description['report_location'].eql? "above_revisions") %>
1+
<% if params[:controller].eql? "IssueController" and ( Setting.plugin_redmine_spent_time_in_issue_description['report_location'].eql? "below_revisions" or Setting.plugin_redmine_spent_time_in_issue_description['report_location'].eql? "above_revisions") and params[:action].eql? "show" and User.current.allowed_to?(:view_time_entries, @project) and @issue.present? and @issue.time_entries.present? %>
22

33
<script type="text/javascript">
44
$(document).ready(function() {

0 commit comments

Comments
 (0)