mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -37,7 +37,7 @@ class CustomersController < ApplicationController
|
|||||||
def autocomplete_customer_vehicles
|
def autocomplete_customer_vehicles
|
||||||
customer = Customer.find_by_id(params[:term])
|
customer = Customer.find_by_id(params[:term])
|
||||||
items = customer.vehicles if customer
|
items = customer.vehicles if customer
|
||||||
render :json => json_for_autocomplete(items)
|
render :json => items.to_json if items
|
||||||
end
|
end
|
||||||
|
|
||||||
# display a list of all customers
|
# display a list of all customers
|
||||||
|
|||||||
Reference in New Issue
Block a user