]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4832
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 18 Jan 2013 01:45:41 +0000 (20:45 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 18 Jan 2013 01:45:41 +0000 (20:45 -0500)
src/mod/applications/mod_directory/mod_directory.c

index c78106ba52d4704f54d6b21226ca4b904d0abf16..4e4f6d7c279c32fe9368b18aa0e3d0ad0f5b7e7e 100644 (file)
@@ -810,7 +810,7 @@ switch_status_t navigate_entrys(switch_core_session_t *session, dir_profile_t *p
        cbt.len = sizeof(entry_count);
 
        if (params->search_by == SEARCH_BY_FIRST_AND_LAST_NAME) {
-               sql_where = switch_mprintf("hostname = '%q' and uuid = '%q' and name_visible = 1 and (%s like '%q%%' or %s like '%q%%'",
+               sql_where = switch_mprintf("hostname = '%q' and uuid = '%q' and name_visible = 1 and (%s like '%q%%' or %s like '%q%%')",
                                globals.hostname, switch_core_session_get_uuid(session), "last_name_digit", params->digits, "first_name_digit", params->digits);
        } else if (params->search_by == SEARCH_BY_FULL_NAME) {
                sql_where = switch_mprintf("hostname = '%q' and uuid = '%q' and name_visible = 1 and full_name_digit like '%%%q%%'",