agileware-jp / redmine_issue_templates

Redmine Issue Template. Pull requests, reporting issues, stars and sponsoring are always welcome!
https://www.redmine.org/plugins/redmine_issue_templates
GNU General Public License v2.0
71 stars 33 forks source link

Fix 'Replace subject and description' option was not applied when core field 'description' was disabled in tracker configuration #103

Closed maeda-m closed 2 months ago

maeda-m commented 2 months ago

Motivation / Background

Fixed an error when applying issue templates with 'Replace subject and description' enabled on trackers where the standard 'Description' field is disabled.

Detail

The steps to reproduce the issue are as follows:

  1. In the tracker settings, uncheck the 'Description' option under the Standard field.
  2. In the 'Template Optional Settings', enable the "Replace subject and description" option.
  3. Create an issue template with an 'Issue title' for the tracker from step 1.
  4. On the New Issue screen, select the tracker from step 1 and the issue template from step 3.
  5. The 'Issue title' from the issue template is not applied to the 'Subject' of the new issue.

Additional information

Environment:
  Redmine version                5.1.3.stable
  Ruby version                   3.2.5-p208 (2024-07-26) [aarch64-linux]
  Rails version                  6.1.7.8
  Environment                    development
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Default
SCM:
  Subversion                     1.14.2
  Mercurial                      6.3.2
  Bazaar                         3.3.2
  Git                            2.46.0
  Filesystem                     
Redmine plugins:
  redmine_issue_templates        1.1.2