mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-08-27 09:00:44 -04:00
Register vehicle field with SubtaskFieldCopier and ensure uniqueness
This commit is contained in:
@@ -19,5 +19,13 @@ module RedmineQboVehicles
|
|||||||
Vehicles::Hooks::PdfHookListener
|
Vehicles::Hooks::PdfHookListener
|
||||||
Vehicles::Hooks::ViewHookListener
|
Vehicles::Hooks::ViewHookListener
|
||||||
Vehicles::Hooks::CustomerAppointmentShowHookListener
|
Vehicles::Hooks::CustomerAppointmentShowHookListener
|
||||||
|
|
||||||
|
# If the SubtaskFieldCopier plugin is installed, register our fields
|
||||||
|
if defined?(SubtaskFieldCopier)
|
||||||
|
SubtaskFieldCopier.registered_fields << :vehicle
|
||||||
|
|
||||||
|
# Ensure there are no duplicates in case of hot-reloads in development mode
|
||||||
|
SubtaskFieldCopier.registered_fields.uniq!
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user