Skip to content

Commit

Permalink
Merge pull request #4741 from greezybacon/issue/user-ldap-search
Browse files Browse the repository at this point in the history
users: Fix searching of users
  • Loading branch information
protich committed Feb 17, 2019
2 parents eafb34d + 20c9932 commit 124bb9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/ajax.users.php
Expand Up @@ -79,8 +79,10 @@ function search($type = null, $fulltext=false) {
'org__name__contains' => $q,
'account__username__contains' => $q,
));
if (UserForm::getInstance()->getField('phone'))
if (UserForm::getInstance()->getField('phone')) {
UserForm::ensureDynamicDataView();
$filter->add(array('cdata__phone__contains' => $q));
}

$users->filter($filter);
}
Expand Down
2 changes: 1 addition & 1 deletion scp/js/scp.js
Expand Up @@ -483,7 +483,7 @@ var scp_prep = function() {

$('div.tab_content[id] div.error:not(:empty)').each(function() {
var div = $(this).closest('.tab_content');
$('a[href^=#'+div.attr('id')+']').parent().addClass('error');
$('a[href^="#'+div.attr('id')+'"]').parent().addClass('error');
});

$('[data-toggle="tooltip"]').tooltip()
Expand Down

0 comments on commit 124bb9b

Please sign in to comment.