mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-10-04 01:10:43 -04:00
Added flash notification for deleted customers.
This commit is contained in:
1 parent
5165bc20b4
commit
b02a40827d
3 files changed
+6
-2
No files matched your search
@@ -64,6 +64,7 @@ class VehiclesController < ApplicationController
|
||||
@vin = @vehicle.vin.scan(/.{1,9}/) if @vehicle.vin
|
||||
@issues = @vehicle.issues.order(id: :desc)
|
||||
@closed_issues = (@issues - @issues.open)
|
||||
flash[:error] = t :alert_no_customer if @vehicle.customer.nil?
|
||||
rescue
|
||||
flash[:error] = t :alert_vehicle_not_found
|
||||
render_404
|
||||
|
||||
Reference in new issue
Block a user