Alan Lam 8 лет назад
Родитель
Сommit
65c97e4c3d
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      controllers/location_view.php

+ 3 - 0
controllers/location_view.php

@@ -4,10 +4,13 @@ $location = Location::get($id);
 if(!$location) throw new Exception("Location not found.");
 if(!Core::$user->hasPermission($location)) throw new Exception("You do not have permission to access this page.");
 
+$customer = $location->getCustomer();
+
 $page_title = $location->name;
 
 Core::addBreadcrumb("/account", "Account");
 Core::addBreadcrumb("/account/locations", "Locations");
+Core::addBreadcrumb("/account/locations?customer_id=$customer->id", "$customer->name Locations");
 Core::addBreadcrumb("/account/locations/$location->id", $page_title);
 
 $status_constraint = new Constraint("BETWEEN");