Project

General

Profile

RE: Default columns plugin » Default-queries-CSV-export.patch

Olivier Houdas, 2014-10-31 14:55

View differences:

plugins/redmine_default_columns/inc/qpp_queries_helper.rb Sat Oct 25 19:05:09 2014 +0200 → plugins/redmine_default_columns/inc/qpp_queries_helper.rb Sat Oct 25 19:33:18 2014 +0200
1 1
#module QueriesHelper
2 2
  def should_apply_for_default_query?
3
    return false unless params[:query_id].blank?
4
    if api_request? || params[:set_filter] || session[:query].nil? ||
3
    if !params[:query_id].blank? || params[:format]=="csv"
4
      return false
5
    elsif api_request? || params[:set_filter] || session[:query].nil? ||
5 6
           session[:query][:project_id] != (@project ? @project.id : nil) ||
6 7
        session[:query][:column_names].nil?
7 8
      return true
    (1-1/1)