Commit 2df1dd2b authored by BaiJiangJie's avatar BaiJiangJie Committed by 老广

[Bugfix] LDAP同步用户列表中如果API获取到的用户名中有空格,在设置为id的时候默认会取第一个空格前的字符串作为用户名,导致不会导入用户 (#2726)

parent 4cd3dd36
......@@ -58,6 +58,9 @@ function initLdapUsersTable() {
ele: $('#ldap_list_users_table'),
ajax_url: '{% url "api-settings:ldap-user-list" %}',
columnDefs: [
{targets: 0, createdCell: function (td, cellData, rowData) {
$(td).html("<input type='checkbox' class='text-center ipt_check' id='ID_USERNAME'>".replace("ID_USERNAME", cellData))
}},
{targets: 4, createdCell: function (td, cellData, rowData) {
if(cellData){
$(td).html('<i class="fa fa-check text-navy"></i>')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment