diff options
| author | mark <mark> | 2011-07-31 01:01:05 +0000 | 
|---|---|---|
| committer | mark <mark> | 2011-07-31 01:01:05 +0000 | 
| commit | 949dc94f84492f7ab96fb7333177898611a2cf9a (patch) | |
| tree | 7966edb7a71008728ed31acdc93e4119723bb695 /httemplate/view | |
| parent | 197e19d52c02f541850ca06f2628d86c2c3b9464 (diff) | |
more tolerant installation note fields, #13827
Diffstat (limited to 'httemplate/view')
| -rw-r--r-- | httemplate/view/svc_dish.cgi | 4 | ||||
| -rw-r--r-- | httemplate/view/svc_hardware.cgi | 16 | 
2 files changed, 13 insertions, 7 deletions
diff --git a/httemplate/view/svc_dish.cgi b/httemplate/view/svc_dish.cgi index 768c1372f..58da7075a 100644 --- a/httemplate/view/svc_dish.cgi +++ b/httemplate/view/svc_dish.cgi @@ -14,6 +14,8 @@ my %labels = map { $_ =>  ( ref($fields->{$_})                   } keys %$fields;  my @fields = ('acctnum',                { field => 'installdate', type => 'date' }, -              'note' +              { field => 'note',  +                value => sub { encode_entities($_[0]->note) }  +              },                );  </%init> 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>  | 
