MT#4369 callflow: count total correctly

this group_by is ok, because it is optimized by mysql and the index on
call_id is still used
agranig/selfsignup
Gerhard Jungwirth 11 years ago
parent 451b6a89e6
commit d313bc7559

@ -44,7 +44,7 @@ sub ajax :Chained('root') :PathPart('ajax') :Args(0) {
my $calls_rs_cb = sub {
my %params = @_;
my $total_count = $c->model('DB')->resultset('messages')->search(undef,{select => \'distinct(call_id)'})->count;
my $total_count = $c->model('DB')->resultset('messages')->search(undef,{group_by => 'call_id'})->count;
my $base_rs = $c->model('DB')->resultset('messages_custom');
my $searchstring = $params{searchstring} ? $params{searchstring}.'%' : '';

Loading…
Cancel
Save