From 006e907b35f6e50f1005af869a07cc658b2eb360 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 30 Jan 2026 07:53:14 -0500 Subject: [PATCH] need to supply selected id --- lib/hooks/issues_form_hook_listener.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hooks/issues_form_hook_listener.rb b/lib/hooks/issues_form_hook_listener.rb index 40bcc31..ae59ecd 100644 --- a/lib/hooks/issues_form_hook_listener.rb +++ b/lib/hooks/issues_form_hook_listener.rb @@ -39,7 +39,7 @@ module Hooks # Generate the drop down list of quickbooks estimates owned by the selected customer select_estimate = f.select :estimate_id, issue.customer ? issue.customer.estimates.pluck(:doc_number, :id).sort! {|x, y| y <=> x} : [], - selected: issue.estimate, + selected: issue.estimate ? issue.estimate.id : nil, include_blank: true # Pass all prebuilt form components to our partial