mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update vehicles_controller.rb
This commit is contained in:
@@ -44,6 +44,7 @@ class VehiclesController < ApplicationController
|
|||||||
@vehicle = Vehicle.find_by_id(params[:id])
|
@vehicle = Vehicle.find_by_id(params[:id])
|
||||||
if @vehicle
|
if @vehicle
|
||||||
@customer = @vehicle.customer.name if @vehicle.customer
|
@customer = @vehicle.customer.name if @vehicle.customer
|
||||||
|
issues = @vehicle.issues
|
||||||
else
|
else
|
||||||
flash[:error] = "Vehicle Not Found"
|
flash[:error] = "Vehicle Not Found"
|
||||||
redirect_to :index
|
redirect_to :index
|
||||||
|
|||||||
Reference in New Issue
Block a user