ソースを参照

Set default country on new locations

Alan Lam 8 年 前
親
コミット
245b391ee3
1 ファイル変更、1 行追加、0 行削除
  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 = new Location;
 $location->customer_id = $customer->id;
 $location->customer_id = $customer->id;
+$location->country = DEFAULT_COUNTRY;
 
 
 $submit = http::value("submit");
 $submit = http::value("submit");
 if($submit) {
 if($submit) {