summaryrefslogtreecommitdiffstats
path: root/app/helpers/queries_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-03 14:55:26 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-03 14:55:26 +0000
commit5f8d73108ea0ee821248c16cd743e68071cca285 (patch)
treed8caee97d35b2f760ad9050be63a0c0db89fecd5 /app/helpers/queries_helper.rb
parent8a7279e5ee495758f76c752cb48a6d9ffb04499c (diff)
downloadredmine-5f8d73108ea0ee821248c16cd743e68071cca285.tar.gz
redmine-5f8d73108ea0ee821248c16cd743e68071cca285.zip
add empty line after guard clause to QueriesHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20233 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/queries_helper.rb')
-rw-r--r--app/helpers/queries_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 2f8c47487..5d7c50f50 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -158,6 +158,7 @@ module QueriesHelper
def render_query_totals(query)
return unless query.totalable_columns.present?
+
totals = query.totalable_columns.map do |column|
total_tag(column, query.total_for(column))
end
@@ -307,6 +308,7 @@ module QueriesHelper
scope = scope.or(klass.where(:project_id => @project)) if @project
@query = scope.find(params[:query_id])
raise ::Unauthorized unless @query.visible?
+
@query.project = @project
session[session_key] = {:id => @query.id, :project_id => @query.project_id} if use_session
elsif api_request? || params[:set_filter] || !use_session || session[session_key].nil? || session[session_key][:project_id] != (@project ? @project.id : nil)
@@ -396,6 +398,7 @@ module QueriesHelper
# Renders a group of queries
def query_links(title, queries)
return '' if queries.empty?
+
# links to #index on issues/show
url_params =
if controller_name == 'issues'