From 9115cc662c5fc7a9ab7bbf0d638ce09c49d9cef1 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Mon, 19 Aug 2024 22:39:50 -0400 Subject: [PATCH] Forgot params[:search] --- app/controllers/estimate_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/estimate_controller.rb b/app/controllers/estimate_controller.rb index 392ad3b..bda75e8 100644 --- a/app/controllers/estimate_controller.rb +++ b/app/controllers/estimate_controller.rb @@ -17,7 +17,7 @@ class EstimateController < ApplicationController def get_estimate # Force sync for estimate by doc number - Estimate.sync_by_doc_number if params[:search] + Estimate.sync_by_doc_number(params[:search]) if params[:search] estimate = Estimate.find_by_id(params[:id]) if params[:id] estimate = Estimate.find_by_doc_number(params[:search]) if params[:search] return estimate