From 8ec60c8cd72103aa01db4b93c087acadb1a6eb39 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 19 Mar 2026 10:20:50 -0400 Subject: [PATCH] updated to new autocomplete --- app/views/vehicles/_form.html.erb | 4 ++-- init.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/vehicles/_form.html.erb b/app/views/vehicles/_form.html.erb index 82a5fdf..be84781 100644 --- a/app/views/vehicles/_form.html.erb +++ b/app/views/vehicles/_form.html.erb @@ -6,8 +6,8 @@
<%=t(:field_customer)%>:
- <%= f.autocomplete_field :customer, autocomplete_customer_name_customers_path, value: @customer.name, update_elements: {id: '#customer_id', value: '#issue_customer'}, required: true %> - <%= f.hidden_field :customer_id, id: "customer_id", value: @customer.id %> + <%= f.text_field :customer, class: "customer-name", autocomplete: "off", value: @customer.name, required: true,data: { autocomplete_url: "/customers/autocomplete" } %> + <%= f.hidden_field :customer_id, id: "issue_customer_id", value: @customer.id %>
diff --git a/init.rb b/init.rb index a63a447..85fa818 100644 --- a/init.rb +++ b/init.rb @@ -14,14 +14,14 @@ Redmine::Plugin.register :redmine_qbo_vehicles do name 'Redmine QBO Vehicles plugin' author 'Rick Barrette' description 'This is a plugin for Redmine to intergrate with the redmine_qbo plugin to provide vehicle data tracking' - version '2026.3.0' + version '2026.3.1' url 'https://github.com/rickbarrette/redmine_qbo_vehicles' author_url 'https://barrettefabrication.com' requires_redmine version_or_higher: '6.1.0' # Ensure redmine_qbo is installed begin - requires_redmine_plugin :redmine_qbo, version_or_higher: '2026.1.2' + requires_redmine_plugin :redmine_qbo, version_or_higher: '2026.3.11' rescue Redmine::PluginNotFound raise 'Please install the redmine_qbo plugin (https://github.com/rickbarrette/redmine_qbo)' end