From: ivan Date: Tue, 26 Aug 2008 23:53:47 +0000 (+0000) Subject: add unchecked vs. ok distinction to lint X-Git-Tag: root_of_webpay_support~412 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4f18470292da780c53dcf4885c9227562ee07742 add unchecked vs. ok distinction to lint --- diff --git a/FS/FS/Tron.pm b/FS/FS/Tron.pm index 33280955e..dcb917e21 100644 --- a/FS/FS/Tron.pm +++ b/FS/FS/Tron.pm @@ -53,6 +53,7 @@ sub tron_scan { $hash{$option} = $value; } close READER; + close WRITER; unless ( keys %hash ) { return "error scanning $machine\n"; @@ -86,6 +87,8 @@ sub tron_lint { push @lint, "$option is $current" unless $current =~ $desired{$option}; } + push @lint, 'unchecked' unless scalar($cust_svc->options); + @lint; } diff --git a/httemplate/elements/mcp_lint.html b/httemplate/elements/mcp_lint.html index 826549c65..9e2b5cab6 100644 --- a/httemplate/elements/mcp_lint.html +++ b/httemplate/elements/mcp_lint.html @@ -1,5 +1,6 @@ % foreach my $lint (@lint) { - <% $lint %>
+% my $color = ( $lint =~ /unchecked$/ ? '#FF9900' : '#FF0000' ); + <% $lint %>
% } <%init>