diff --git a/system/controllers/customfield.php b/system/controllers/customfield.php index b63b7a42..def4480f 100644 --- a/system/controllers/customfield.php +++ b/system/controllers/customfield.php @@ -23,7 +23,7 @@ switch ($action) { if(!empty($_POST['name'][$n])){ $datas[] = [ 'order' => $_POST['order'][$n], - 'name' => $_POST['name'][$n], + 'name' => Text::alphanumeric(strtolower(str_replace(" ", "_", $_POST['name'][$n])), "_"), 'type' => $_POST['type'][$n], 'placeholder' => $_POST['placeholder'][$n], 'value' => $_POST['value'][$n], diff --git a/system/lan/english.json b/system/lan/english.json index 17690130..73189be7 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -911,5 +911,9 @@ "Don_t_have_an_account_": "Don't have an account?", "You_do_not_have_permission_to_access_this_page_in_demo_mode": "You do not have permission to access this page in demo mode", "Custom_Fields": "Custom Fields", - "New_Field": "New Field" + "New_Field": "New Field", + "Data_Change": "Data Change", + "Photo": "Photo", + "Home_Address": "Home Address", + "Email_Address": "Email Address" } \ No newline at end of file diff --git a/ui/ui/customer/custom_field.tpl b/ui/ui/customer/custom_field.tpl index 257dded6..de48a91e 100644 --- a/ui/ui/customer/custom_field.tpl +++ b/ui/ui/customer/custom_field.tpl @@ -1,6 +1,6 @@ {if $register}