|
@@ -7,6 +7,7 @@ Core::addBreadcrumb("/account/customers", "Customers");
|
|
|
Core::addBreadcrumb("/account/customers/add", $page_title);
|
|
Core::addBreadcrumb("/account/customers/add", $page_title);
|
|
|
|
|
|
|
|
$customer = new Customer;
|
|
$customer = new Customer;
|
|
|
|
|
+$customer->country = DEFAULT_COUNTRY;
|
|
|
$customer->email_after_test = 1;
|
|
$customer->email_after_test = 1;
|
|
|
$customer->email_locations_after_test = 1;
|
|
$customer->email_locations_after_test = 1;
|
|
|
|
|
|
|
@@ -23,6 +24,7 @@ if($submit) {
|
|
|
$customer->city = http::value("city", "trim");
|
|
$customer->city = http::value("city", "trim");
|
|
|
$customer->county = http::value("county", "trim");
|
|
$customer->county = http::value("county", "trim");
|
|
|
$customer->postal_code = http::value("postal_code", "trim");
|
|
$customer->postal_code = http::value("postal_code", "trim");
|
|
|
|
|
+ $customer->country = http::value("country", "trim");
|
|
|
$customer->email = http::value("email", "email");
|
|
$customer->email = http::value("email", "email");
|
|
|
$customer->phone = http::value("phone", "trim");
|
|
$customer->phone = http::value("phone", "trim");
|
|
|
$customer->email_after_test = http::value("email_after_test", "int");
|
|
$customer->email_after_test = http::value("email_after_test", "int");
|