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];
<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>
% }
% }
-% 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') ) {