プロジェクト

全般

プロフィール

Vote #79606

未完了

Issue CSV export options: checkboxes have no effect for columns activated in query

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
32
issue_org_id:
29830
author_id:
362210
assigned_to_id:
0
comments:
9
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

The csv export option modal for issues has checkboxes for the description and last notes which are activated by default if these columns are activated for the current query. Disabling them manually has no effect: the columns are still exported to CSV because @query_as_hidden_field_tags@ adds them as hidden fields.

This adds an argument @ignored_column_names@ to @query_as_hidden_fields_tags@ which is used to ignore the description and last_notes columns for issues.

Patch works for Redmine 3.4 and 4.


journals

--------------------------------------------------------------------------------
Thank you for sharing the patch.
> The csv export option modal for issues has checkboxes for the description and last notes which are activated by default if these columns are activated for the current query. Disabling them manually has no effect: the columns are still exported to CSV because query_as_hidden_field_tags adds them as hidden fields.
I felt something wrong with this behavior.

I investigated a little to see if we can solve this problem by changing the view, but it seemed difficult.
I think the method proposed in attachment:0001-fix-Issue-CSV-export-options-checkboxes-have-no-effe.patch is valid.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
LGTM.
But is it ok to not update tests?
--------------------------------------------------------------------------------
If #33211 is implemented, this change will no longer be required.
--------------------------------------------------------------------------------

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

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


related_issues

relates,New,33211,Include block columns (ex: Description, Last notes) in CSV export when option "All columns" is selected

Admin Redmine さんが約2年前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョンCandidate for next major release_32 にセット

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

いいね!0
いいね!0