user settings: Fix custom URL field style in profile form.

Type of input element in profile form was not defined for
URL type custom fields. Because type was not passed to
template.
This commit is contained in:
Yashashvi Dave
2019-06-28 14:08:14 +05:30
committed by Tim Abbott
parent d7ee2aced1
commit 5be2207bf8

View File

@@ -91,6 +91,7 @@ exports.append_custom_profile_fields = function (element_id, user_id) {
all_field_template_types[all_field_types.USER.id] = "user";
all_field_template_types[all_field_types.DATE.id] = "date";
all_field_template_types[all_field_types.EXTERNAL_ACCOUNT.id] = "text";
all_field_template_types[all_field_types.URL.id] = "url";
all_custom_fields.forEach(function (field) {
var field_value = people.get_custom_profile_data(user_id, field.id);