diff options
author | Mark Wells <mark@freeside.biz> | 2014-06-11 13:53:25 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-06-11 13:53:25 -0700 |
commit | c16ef0145a0049c3f20377e2c5076087e999cde0 (patch) | |
tree | 698c7c51c74e33ab84876b09e1253c85bf9774fe /httemplate/search/cust_msg.html | |
parent | d2d137731f88b8a0d35294284ec3571f46bd18b5 (diff) |
display sent mail on customer notes page, and improve sent mail log UI, #29250
Diffstat (limited to 'httemplate/search/cust_msg.html')
-rw-r--r-- | httemplate/search/cust_msg.html | 12 |
1 files changed, 11 insertions, 1 deletions
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)"; |