|
|
@@ -53,6 +53,9 @@ if($submit) {
|
|
|
try {
|
|
|
$user->requireValidCsrfToken();
|
|
|
|
|
|
+ $customer_id = $request->int("customer_id");
|
|
|
+ $customer = Customer::require($customer_id);
|
|
|
+
|
|
|
$location->customer_id = $customer->id;
|
|
|
$location->name = $request->string("name");
|
|
|
$location->phone = $request->string("phone");
|