From: khoff Date: Fri, 11 May 2007 23:18:53 +0000 (+0000) Subject: Fix (hopefully) all uses of /elements/tr-select-agent.html where agentnum may be... X-Git-Tag: TRIXBOX_2_6~512 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=f145ba710c004d0735caae621004d2776b178a6e;p=freeside.git Fix (hopefully) all uses of /elements/tr-select-agent.html where agentnum may be undefined. --- diff --git a/httemplate/search/report_cust_bill.html b/httemplate/search/report_cust_bill.html index 74b96cc90..d6848921e 100644 --- a/httemplate/search/report_cust_bill.html +++ b/httemplate/search/report_cust_bill.html @@ -5,7 +5,7 @@ <% include( '/elements/tr-select-agent.html', - $cgi->param('agentnum') ? $cgi->param('agentnum') : '', + ($cgi->param('agentnum') || ''), 'label' => 'Invoices for agent: ', ) %> diff --git a/httemplate/search/report_cust_credit.html b/httemplate/search/report_cust_credit.html index 993209763..139902228 100644 --- a/httemplate/search/report_cust_credit.html +++ b/httemplate/search/report_cust_credit.html @@ -18,7 +18,7 @@ <% include( '/elements/tr-select-agent.html', - $cgi->param('agentnum'), + ($cgi->param('agentnum') || ''), 'label' => 'for agent: ', ) %> diff --git a/httemplate/search/report_cust_main-zip.html b/httemplate/search/report_cust_main-zip.html index 1cd07ef76..c5a64ae7a 100644 --- a/httemplate/search/report_cust_main-zip.html +++ b/httemplate/search/report_cust_main-zip.html @@ -34,7 +34,7 @@ <% include( '/elements/tr-select-agent.html', - $cgi->param('agentnum'), + ($cgi->param('agentnum') || ''), 'label' => 'for agent: ', ) %> diff --git a/httemplate/search/report_cust_pay.html b/httemplate/search/report_cust_pay.html index 0327e042e..b32b1287e 100644 --- a/httemplate/search/report_cust_pay.html +++ b/httemplate/search/report_cust_pay.html @@ -49,7 +49,7 @@ <% include( '/elements/tr-select-agent.html', - $cgi->param('agentnum'), + ($cgi->param('agentnum') || ''), 'label' => 'for agent: ', ) %> diff --git a/httemplate/search/report_cust_pay_batch.html b/httemplate/search/report_cust_pay_batch.html index f57a9557e..4e8937cac 100644 --- a/httemplate/search/report_cust_pay_batch.html +++ b/httemplate/search/report_cust_pay_batch.html @@ -16,7 +16,7 @@ <% include( '/elements/tr-select-agent.html', - $cgi->param('agentnum'), + ($cgi->param('agentnum') || ''), 'label' => 'for agent: ', ) %> diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html index 5b2efa2ca..1412816c9 100755 --- a/httemplate/search/report_cust_pkg.html +++ b/httemplate/search/report_cust_pkg.html @@ -9,7 +9,7 @@ <% include( '/elements/tr-select-agent.html', - $cgi->param('agentnum'), + ($cgi->param('agentnum') || ''), ) %>
Search options