Add a default project setting for issues created from estimates

Redmine has no default-project setting for new issues, so the preview
page used the first project the user could add issues to whenever an
appointment had no project. The plugin settings now have a Default
project; the order is: project chosen on the page, the appointment's
project, the default project, then the first allowed project.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
Claude committed 2026-10-28 21:08:58 -04:00
1 parent 37d98dbe3d
commit 91caa51ab7
5 files changed
+20 -3

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ Redmine::Plugin.register :redmine_qbo_calendar do
requires_redmine version_or_higher: '7.0.0'
# Item codes: which QBO estimate items can become issues (e.g. Labor, Alignments)
settings default: { 'item_codes' => "Labor", 'default_tracker_id' => '' },
settings default: { 'item_codes' => "Labor", 'default_tracker_id' => '', 'default_project_id' => '' },
partial: 'settings/qbo_calendar_settings'
# Add Holidays index to the Redmine Administration Menu