From 9315481cdfefed08d0e1bfa0701de872ba6d241b Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 31 Aug 2023 23:30:11 +0000 Subject: [PATCH] Add missing files in r22289 (#2568). git-svn-id: https://svn.redmine.org/redmine/trunk@22290 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../issues/_issue_status_description.html.erb | 22 +++++++++++++++++++ .../20230818020734_add_status_description.rb | 9 ++++++++ 2 files changed, 31 insertions(+) create mode 100644 app/views/issues/_issue_status_description.html.erb create mode 100644 db/migrate/20230818020734_add_status_description.rb diff --git a/app/views/issues/_issue_status_description.html.erb b/app/views/issues/_issue_status_description.html.erb new file mode 100644 index 000000000..4b67d3d82 --- /dev/null +++ b/app/views/issues/_issue_status_description.html.erb @@ -0,0 +1,22 @@ +<% if issue_statuses.any? {|s| s.description.present? } %> + +<% end %> +<%= javascript_tag do %> + function selectIssueStatus(id) { + var target = $('#issue_status_id'); + target.attr("selected", false); + target.find('option[value="' + id + '"]').prop('selected', true); + target.trigger('change'); + hideModal('#issue_statuses_description h3'); + } +<% end %> diff --git a/db/migrate/20230818020734_add_status_description.rb b/db/migrate/20230818020734_add_status_description.rb new file mode 100644 index 000000000..be1b1429b --- /dev/null +++ b/db/migrate/20230818020734_add_status_description.rb @@ -0,0 +1,9 @@ +class AddStatusDescription < ActiveRecord::Migration[6.1] + def up + add_column :issue_statuses, :description, :string, :after => :name + end + + def down + remove_column :issue_statuses, :description + end +end -- 2.39.5