summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httemplate/browse/part_pkg_taxproduct/compliance_solutions.html3
-rw-r--r--httemplate/config/config-view.cgi14
-rwxr-xr-xhttemplate/edit/svc_acct.cgi10
3 files changed, 17 insertions, 10 deletions
diff --git a/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html b/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html
index bbcb6877f..b5936daef 100644
--- a/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html
+++ b/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html
@@ -53,6 +53,9 @@ function category_changed(what) {
jopt( $('#product_code'), '', 'Select product code' );
var part_pkg_taxproduct = reply.part_pkg_taxproduct;
+ if ( part_pkg_taxproduct.length == 0 ) {
+ alert('No compliance solutions product codes found; did you run freeside-compliance_solutions-import?');
+ }
for ( var s = 0; s < part_pkg_taxproduct.length; s=s+2 ) {
var product_code = part_pkg_taxproduct[s];
var description = part_pkg_taxproduct[s+1];
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index b02ab1af3..5f09b128a 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -212,11 +212,15 @@ invoice language options:
<tr>
<td id="<% $agentnum.$i->key.$n %>" bgcolor="#ffffff">
-<font size="-2"><pre><% encode_entities(join("\n",
- map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
- $conf->config($i->key, $agentnum)
- ) )
-%></pre></font>
+
+% my $escaped = eval { encode_entities(join("\n",
+% map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
+% $conf->config($i->key, $agentnum)
+% ) );
+% };
+% $escaped = $@ ? '('.encode_entities($@).')' : $escaped;
+<font size="-2"><pre><% $escaped %></pre></font>
+
</td>
</tr>
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index 7be5eabb7..27ea3c5ea 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -310,11 +310,11 @@
% }
% }
-% my %label = ( seconds => 'Time',
-% upbytes => 'Upload bytes',
-% downbytes => 'Download bytes',
-% totalbytes => 'Total bytes',
-% );
+% tie my %label, 'Tie::IxHash', seconds => 'Time',
+% upbytes => 'Upload bytes',
+% downbytes => 'Download bytes',
+% totalbytes => 'Total bytes',
+% ;
% foreach my $uf (keys %label) {
% my $tf = $uf . "_threshold";
% if ( $curuser->access_right('Edit usage') ) {