mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -41,6 +41,7 @@ class CustomersController < ApplicationController
|
|||||||
@customer = Customer.find_by_id(params[:id])
|
@customer = Customer.find_by_id(params[:id])
|
||||||
if @customer
|
if @customer
|
||||||
@vehicles = @customer.vehicles.paginate(:page => params[:page])
|
@vehicles = @customer.vehicles.paginate(:page => params[:page])
|
||||||
|
@issues = @customer.issues
|
||||||
else
|
else
|
||||||
flash[:error] = "Customer Not Found"
|
flash[:error] = "Customer Not Found"
|
||||||
render :index
|
render :index
|
||||||
|
|||||||
Reference in New Issue
Block a user