2 Commits

Author SHA1 Message Date
1199af0886 2026.1.4 2026-01-30 07:50:26 -05:00
5a2832b751 need to supply selcted id 2026-01-30 07:49:51 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ Redmine::Plugin.register :redmine_qbo_vehicles do
name 'Redmine QBO Vehicles plugin' name 'Redmine QBO Vehicles plugin'
author 'Rick Barrette' author 'Rick Barrette'
description 'This is a plugin for Redmine to intergrate with the redmine_qbo plugin to provide vehicle data tracking' description 'This is a plugin for Redmine to intergrate with the redmine_qbo plugin to provide vehicle data tracking'
version '2026.1.3' version '2026.1.4'
url 'https://github.com/rickbarrette/redmine_qbo_vehicles' url 'https://github.com/rickbarrette/redmine_qbo_vehicles'
author_url 'https://barrettefabrication.com' author_url 'https://barrettefabrication.com'
requires_redmine version_or_higher: '6.1.0' requires_redmine version_or_higher: '6.1.0'

View File

@@ -23,7 +23,7 @@ module Vehicles
locals: { locals: {
vehicle: context[:form].select( :vehicle_id, vehicle: context[:form].select( :vehicle_id,
context[:issue].customer ? context[:issue].customer.vehicles.pluck(:name, :id) : [], context[:issue].customer ? context[:issue].customer.vehicles.pluck(:name, :id) : [],
selected: context[:issue].vehicle, selected: context[:issue].vehicle ? context[:issue].vehicle.id : nil,
include_blank: true ) include_blank: true )
} }
}) })