From b2dfe28eed04f4c95e4a6b87203cd4f03d88b74d Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 19 Jan 2021 16:17:42 +0100 Subject: [PATCH] TT#108452 disable order_by in call_list_suppressions_rs * predefined order_by in the resultset that is used in Utils::CallLists::call_list_suppressions_rs caused further $rs->union_all appliance to have an invalid syntax with order_by inside each "select" where it should have been outside "union all", therefore "order_by" is disabled when using call_lists_suppresions_rs * length(call_id) default order_by is not used when call_id is specified in the query parameters in /api/calllists, where explicit order_by and order_by_direction are correctly applied now when specified Change-Id: I26ae4f63ef40ba3b80bff9c35dfcda9274d5b81e --- lib/NGCP/Panel/Utils/CallList.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/CallList.pm b/lib/NGCP/Panel/Utils/CallList.pm index 2865ccc177..77e6a0cf55 100644 --- a/lib/NGCP/Panel/Utils/CallList.pm +++ b/lib/NGCP/Panel/Utils/CallList.pm @@ -394,7 +394,7 @@ sub call_list_suppressions_rs { $c->stash->{source_cli_suppression_id_colname} = $source_cli_suppression_id_colname; $c->stash->{destination_user_in_suppression_id_colname} = $destination_user_in_suppression_id_colname; my %search_cond = (); - my %search_xtra = (); + my %search_xtra = (order_by => ''); if (_is_show_suppressions($c)) { if (defined $mode and SUPPRESS_OUT == $mode) { $search_xtra{'+select'} = [