From: Go MAEDA Date: Thu, 31 Aug 2023 23:30:11 +0000 (+0000) Subject: Add missing files in r22289 (#2568). X-Git-Tag: 5.1.0~88 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9315481cdfefed08d0e1bfa0701de872ba6d241b;p=redmine.git Add missing files in r22289 (#2568). git-svn-id: https://svn.redmine.org/redmine/trunk@22290 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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