Explorar el Código

Set default country on new locations

Alan Lam hace 8 años
padre
commit
245b391ee3
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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) {