[freeside-commits] freeside/httemplate/search cdr.html, 1.24.2.1, 1.24.2.2
Ivan,,,
ivan at wavetail.420.am
Sun Apr 10 11:04:22 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv19933/search
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cdr.html
Log Message:
fix CDR links on svc_phone when using a default_prefix, RT#12338
Index: cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cdr.html,v
retrieving revision 1.24.2.1
retrieving revision 1.24.2.2
diff -u -w -d -r1.24.2.1 -r1.24.2.2
--- cdr.html 8 Apr 2011 04:12:31 -0000 1.24.2.1
+++ cdr.html 10 Apr 2011 18:04:20 -0000 1.24.2.2
@@ -168,10 +168,15 @@
push @search, "src = '$src'";
}
-if ( $cgi->param('dst') =~ $phonenum ) {
- ( my $dst = $1 ) =~ s/$x//g;
- $hashref->{'dst'} = $dst;
- push @search, "dst = '$dst'";
+if ( $cgi->param('dst') ) {
+
+ my @d = map { $_, "1$_" } split(/\s*,\s*/, $cgi->param('dst') );
+
+ my $search = 'dst IN ('. join(',', map dbh->quote($_), @d). ')';
+
+ push @search, $search;
+ push @qsearch, $search;
+
}
if ( $cgi->param('dcontext') =~ /^\s*(.+)\s*$/ ) {
More information about the freeside-commits
mailing list