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
mr9.3
Kirill Solomko 4 years ago
parent aa84c19ace
commit b2dfe28eed

@ -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'} = [

Loading…
Cancel
Save