From 564528663d06a25db02a7e88764d45bdf4942ca8 Mon Sep 17 00:00:00 2001
From: Mark Michelson <mmichelson@digium.com>
Date: Wed, 4 Jun 2008 14:12:45 +0000
Subject: [PATCH] Merged revisions 120285 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120285 | mmichelson | 2008-06-04 09:11:12 -0500 (Wed, 04 Jun 2008) | 7 lines

Tab completion when removing a member should give the member's interface,
not the name, since the interface is what is expected for the command.

(closes issue #12783)
Reported by: davevg


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@120286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/app_queue.c b/apps/app_queue.c
index fe9be2c143..bbeb43ef0d 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -5957,7 +5957,7 @@ static char *complete_queue_remove_member(const char *line, const char *word, in
 			if (!strncasecmp(word, m->membername, wordlen) && ++which > state) {
 				char *tmp;
 				ao2_unlock(q);
-				tmp = m->membername;
+				tmp = m->interface;
 				ao2_ref(m, -1);
 				queue_unref(q);
 				return ast_strdup(tmp);
-- 
GitLab