From d4de46b0b9697298d6e5417b5d0899eadf93a87f Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Thu, 21 Nov 2013 16:44:47 +0100 Subject: [PATCH] MT#4967 Show primary number in subscriber list The wrong relation was used here. Discovered during testing for ticket MT#4967. --- lib/NGCP/Panel/Controller/Subscriber.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Controller/Subscriber.pm b/lib/NGCP/Panel/Controller/Subscriber.pm index 21db6e2a94..c841e6bad5 100644 --- a/lib/NGCP/Panel/Controller/Subscriber.pm +++ b/lib/NGCP/Panel/Controller/Subscriber.pm @@ -105,8 +105,8 @@ sub sub_list :Chained('/') :PathPart('subscriber') :CaptureArgs(0) { { name => "domain.domain", search => 1, title => "Domain" }, { name => "uuid", search => 1, title => "UUID" }, { name => "status", search => 1, title => "Status" }, - { name => "number", search => 1, title => "Number", literal_sql => "concat(voip_numbers.cc, voip_numbers.ac, voip_numbers.sn)"}, - { name => "voip_numbers.cc", search => 1, title => "" }, #need this to get the relationship + { name => "number", search => 1, title => "Number", literal_sql => "concat(primary_number.cc, primary_number.ac, primary_number.sn)"}, + { name => "primary_number.cc", search => 1, title => "" }, #need this to get the relationship ]); }