mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Forgot params[:search]
This commit is contained in:
1 parent
9e7c1dbfb2
commit
9115cc662c
1 file changed
+1
-1
@@ -17,7 +17,7 @@ class EstimateController < ApplicationController
|
|||||||
|
|
||||||
def get_estimate
|
def get_estimate
|
||||||
# Force sync for estimate by doc number
|
# 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_id(params[:id]) if params[:id]
|
||||||
estimate = Estimate.find_by_doc_number(params[:search]) if params[:search]
|
estimate = Estimate.find_by_doc_number(params[:search]) if params[:search]
|
||||||
return estimate
|
return estimate
|
||||||
|
|||||||
Reference in new issue
Block a user