Add support for registering custom fields in Subtask Field Copier

This commit is contained in:
ricky committed 2026-08-26 21:18:29 -04:00
1 parent fbd394bbc9
commit 7772526c8d
3 files changed
+33 -11

No files matched your search

+3
View File
@@ -10,6 +10,9 @@
module SubtaskFieldCopier
mattr_accessor :registered_fields
self.registered_fields = []
def self.setup
unless IssuesController.ancestors.include?(SubtaskFieldCopier::Patches::IssuesControllerPatch)
IssuesController.prepend SubtaskFieldCopier::Patches::IssuesControllerPatch