summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_hardware.cgi
diff options
context:
space:
mode:
authormark <mark>2011-07-31 01:00:52 +0000
committermark <mark>2011-07-31 01:00:52 +0000
commit8540e77a4e36da552b518c13200e07570182676b (patch)
tree03d56c5071c48ac936a51025861021d92243a9b6 /httemplate/view/svc_hardware.cgi
parent007fd3026ade508a9d88b436575a4797d003280a (diff)
more tolerant installation note fields, #13827
Diffstat (limited to 'httemplate/view/svc_hardware.cgi')
-rw-r--r--httemplate/view/svc_hardware.cgi16
1 files changed, 10 insertions, 6 deletions
diff --git a/httemplate/view/svc_hardware.cgi b/httemplate/view/svc_hardware.cgi
index 8201e9db0..d982bc8a6 100644
--- a/httemplate/view/svc_hardware.cgi
+++ b/httemplate/view/svc_hardware.cgi
@@ -12,13 +12,17 @@ my %labels = map { $_ => ( ref($fields->{$_})
: $fields->{$_}
);
} keys %$fields;
-my $model = { field => 'typenum',
- type => 'text',
- value => sub { $_[0]->hardware_type->model }
- };
+my $model = { field => 'typenum',
+ type => 'text',
+ value => sub { $_[0]->hardware_type->model }
+ };
my $status = { field => 'statusnum',
type => 'text',
value => sub { $_[0]->status_label }
- };
-my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, 'note' );
+ };
+my $note = { field => 'note',
+ type => 'text',
+ value => sub { encode_entities($_[0]->note) }
+ };
+my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, $note );
</%init>