Update projects_form_hook_listener.rb

This commit is contained in:
2017-11-13 20:37:59 -05:00
committed by GitHub
parent c68b540597
commit 4e4255995e

View File

@@ -28,7 +28,7 @@ class ProjectsFormHookListener < Redmine::Hook::ViewListener
# Load customer information
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"
if context[:project].customer