MT#9671 Add search of subscribers by customer external_id too.

changes/09/409/1
Irina Peshinskaya 11 years ago
parent 5a7c924ff2
commit a2b4c627f3

@ -83,6 +83,19 @@ class_has 'query_params' => (
},
},
},
{
param => 'customer_external_id',
description => 'Filter for subscribers of a specific customer external_id.',
query => {
first => sub {
my $q = shift;
return { 'contract.external_id' => { like => $q } };
},
second => sub {
return { join => 'contract' };
},
},
},
{
param => 'is_pbx_group',
description => 'Filter for subscribers who are (not) pbx_groups.',

Loading…
Cancel
Save