Преглед изворни кода

Fix customer not saving on location form

Alan Lam пре 3 година
родитељ
комит
cdfc0411c1
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      controllers/location_form.php

+ 3 - 0
controllers/location_form.php

@@ -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");