Browse Source

Set default country on new locations

Alan Lam 8 năm trước cách đây
mục cha
commit
245b391ee3
1 tập tin đã thay đổi với 1 bổ sung và 0 xóa
  1. 1 0
      controllers/location_add.php

+ 1 - 0
controllers/location_add.php

@@ -12,6 +12,7 @@ Core::addBreadcrumb("/account/locations/add", $page_title);
 
 $location = new Location;
 $location->customer_id = $customer->id;
+$location->country = DEFAULT_COUNTRY;
 
 $submit = http::value("submit");
 if($submit) {