|
@@ -17,21 +17,26 @@ $user = $core->getUser();
|
|
|
|
|
|
|
|
if(isset($id)) {
|
|
if(isset($id)) {
|
|
|
$location = Location::require($id);
|
|
$location = Location::require($id);
|
|
|
|
|
+ $customer = $location->getCustomer();
|
|
|
|
|
|
|
|
$location->dts_updated = Database::dts();
|
|
$location->dts_updated = Database::dts();
|
|
|
|
|
|
|
|
|
|
+ $core->addBreadcrumb($customer->getUrl(), $customer->name);
|
|
|
$core->addBreadcrumb($location->getUrl(), $location->name);
|
|
$core->addBreadcrumb($location->getUrl(), $location->name);
|
|
|
|
|
|
|
|
$title = __("Update Location");
|
|
$title = __("Update Location");
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
$customer_id = $request->int("customer_id");
|
|
$customer_id = $request->int("customer_id");
|
|
|
|
|
+ $customer = Customer::require($customer_id);
|
|
|
|
|
|
|
|
$location = new Location();
|
|
$location = new Location();
|
|
|
$location->customer_id = $customer_id;
|
|
$location->customer_id = $customer_id;
|
|
|
$location->dts_created = Database::dts();
|
|
$location->dts_created = Database::dts();
|
|
|
|
|
|
|
|
$title = __("Add Location");
|
|
$title = __("Add Location");
|
|
|
|
|
+
|
|
|
|
|
+ $core->addBreadcrumb($customer->getUrl(), $customer->name);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$core->addBreadcrumb($_SERVER["REQUEST_URI"], $title);
|
|
$core->addBreadcrumb($_SERVER["REQUEST_URI"], $title);
|