|
|
@@ -6,6 +6,8 @@ $location = Location::get($id);
|
|
|
if(!$location) throw new Exception("Location not found.");
|
|
|
if(!Core::$user->hasPermission($location)) throw new Exception("You do not have have permission to access this page.");
|
|
|
|
|
|
+$customer = $location->getCustomer();
|
|
|
+
|
|
|
$submit = http::value("submit");
|
|
|
if($submit) {
|
|
|
try {
|
|
|
@@ -52,6 +54,7 @@ if($submit) {
|
|
|
|
|
|
Core::addBreadcrumb("/account", "Account");
|
|
|
Core::addBreadcrumb("/account/locations", "Locations");
|
|
|
+Core::addBreadcrumb("/account/locations?customer_id=$customer->id", "$customer->name Locations");
|
|
|
Core::addBreadcrumb("/account/locations/$id", $location->name);
|
|
|
Core::addBreadcrumb("/account/locations/$id/edit", $page_title);
|
|
|
|