diff options
author | Go MAEDA <maeda@farend.jp> | 2023-04-13 04:20:25 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-04-13 04:20:25 +0000 |
commit | 2d7d01e633a30362e665370a081e3e3bad241432 (patch) | |
tree | f8e914bc5af859d347d58080b74a1d424e11534a /app/controllers | |
parent | cba427ec251527442a38c977e45d755a1ae21ac7 (diff) | |
download | redmine-2d7d01e633a30362e665370a081e3e3bad241432.tar.gz redmine-2d7d01e633a30362e665370a081e3e3bad241432.zip |
Export a version as changelog text (#36679).
Patch by Mizuki ISHIKAWA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22179 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/versions_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index d2beef253..cdec397a8 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -27,6 +27,7 @@ class VersionsController < ApplicationController accept_api_auth :index, :show, :create, :update, :destroy + include VersionsHelper helper :custom_fields helper :projects @@ -73,6 +74,9 @@ class VersionsController < ApplicationController to_a end format.api + format.text do + send_data(version_to_text(@version), type: 'text/plain', filename: "#{@version.name}.txt") + end end end |