X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_msg.html;h=2b6f08e3f647acc9b9811999483b7d76def24965;hp=716addfd6c9c6fe1f17759bad6b8b12f8d0345f2;hb=9fae251fc1e3069694ebaf4fae62bde844f45cff;hpb=c2f4d21edfe3434c02c9dbd666e684c2deb3258e diff --git a/httemplate/search/cust_msg.html b/httemplate/search/cust_msg.html index 716addfd6..2b6f08e3f 100644 --- a/httemplate/search/cust_msg.html +++ b/httemplate/search/cust_msg.html @@ -1,6 +1,6 @@ <& 'elements/search.html', 'title' => $title, - 'name' => 'messages', + 'name_singular' => 'message', 'query' => $query, 'count_query' => $count_query, 'header' => [ @@ -24,6 +24,12 @@ 'status', sub { encode_entities($_[0]->error) }, ], + 'sort_fields' => [ '_date', + 'msgtype', + 'env_to', + 'status', + 'error', + ], 'align' => 'rllcl', 'links' => [ ], 'link_onclicks' => [ @@ -41,6 +47,7 @@ ], 'html_init' => $html_init, 'really_disable_download' => 1, + @_ &> <%init> #hmm... @@ -58,6 +65,9 @@ if ( $cgi->param('status') =~ /^(\w+)$/ ) { if ( $cgi->param('msgtype') =~ /^(\w+)$/ ) { push @where, "msgtype = '$1'"; } +if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { + push @where, "custnum = $1"; +} my ($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, ''); push @where, "(_date >= $beginning AND _date <= $ending)";