mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update projects_form_hook_listener.rb
This commit is contained in:
@@ -28,7 +28,7 @@ class ProjectsFormHookListener < Redmine::Hook::ViewListener
|
|||||||
|
|
||||||
# Load customer information
|
# Load customer information
|
||||||
customer = Customer.find_by_id(selected_customer) if selected_customer
|
customer = Customer.find_by_id(selected_customer) if selected_customer
|
||||||
search_customer = f.autocomplete_field :customer, autocomplete_customer_name_customers_path, :selected => selected_customer, :update_elements => {:id => '#project_customer_id', :value => '#project_customer'}
|
search_customer = f.autocomplete_field :customers_id, autocomplete_customer_name_customers_path, :selected => selected_customer, :update_elements => {:id => '#project_customer_id', :value => '#project_customer'}
|
||||||
customer_id = f.hidden_field :customers_id, :id => "project_customer_id"
|
customer_id = f.hidden_field :customers_id, :id => "project_customer_id"
|
||||||
|
|
||||||
if context[:project].customer
|
if context[:project].customer
|
||||||
|
|||||||
Reference in New Issue
Block a user