update Issue form on customer name change

This commit is contained in:
2022-02-23 18:36:08 -05:00
parent ea21bc362a
commit 55c04b6585

View File

@@ -39,6 +39,7 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
search_customer = f.autocomplete_field :customer,
autocomplete_customer_name_customers_path,
:selected => selected_customer,
:onchange => "updateIssueFrom('/issues/#{context[:issue].id}/edit.js', this)",
:update_elements => { :id => '#issue_customer_id', :value => '#issue_customer' }
customer_id = f.hidden_field :customer_id,