プロジェクト

全般

プロフィール

Vote #77238

完了

Issues filter for CSV Export are not applied

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
Issues filter_56
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
56
version_id:
112
issue_org_id:
22108
author_id:
69107
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
102
ステータス-->[Closed]

説明

When I export CSV file from Issues.
Now the filter for issues, e.g. status, categories are not applied and all opened issues in the project are exported.

I was confirmed that this problem only occurs in version 3.2, not in 3.1.

I found 2 points.

  1. CSV export options form doesn't send proper parameter.
    \app\views\issues\index.html.erb line 80
    form_tag(params.merge({:format => 'csv',:page=>nil}) a form tag with parameters in the action attribute.
    But, parameters don't send to the controller.(This has occurred even 2.6.)
    And so, IssuesController#index tries to get the filter from session data.

  2. Format of session data changed in 3.2
    queries_helper.rb line 215

    session[:query][:project_id] != (@project ? @project.id : nil)
    

    returns nil in 3.2.

session[:query][:project_id] is nil.
session[:query]["project_id"] has the project_id.

And so, IssuesController#index cannot get the filter from session data.

Environment:
  Redmine version                3.2.0.stable rev.15148
  Ruby version                   2.1.5-p273 (2014-11-13) [i386-mingw32]
  Rails version                  4.2.5.1
  Environment                    production
  Database adapter               Mysql2 (5.6.20 MySQL Community Server (GPL))

journals

--------------------------------------------------------------------------------
Fixed in r15202. Query filters are now added as hidden tags in the CSV export form.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues filter_56 にセット
  • 対象バージョン3.2.1_112 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0