From 8540e77a4e36da552b518c13200e07570182676b Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 31 Jul 2011 01:00:52 +0000 Subject: more tolerant installation note fields, #13827 --- httemplate/view/svc_hardware.cgi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'httemplate/view/svc_hardware.cgi') 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 ); -- cgit v1.2.1