mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update customers_controller.rb
This commit is contained in:
1 parent
27807e963d
commit
bcaf011166
1 file changed
+1
-1
@@ -21,7 +21,7 @@ class CustomersController < ApplicationController
|
|||||||
# display a list of all customers
|
# display a list of all customers
|
||||||
def index
|
def index
|
||||||
if params[:search]
|
if params[:search]
|
||||||
@customers = Customer.search(params[:search]).sort.paginate(:page => params[:page])
|
@customers = Customer.search(params[:search]).paginate(:page => params[:page])
|
||||||
if only_one_non_zero?(@customers)
|
if only_one_non_zero?(@customers)
|
||||||
redirect_to @customers.first
|
redirect_to @customers.first
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user