summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_hardware.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/svc_hardware.cgi')
-rw-r--r--httemplate/view/svc_hardware.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/view/svc_hardware.cgi b/httemplate/view/svc_hardware.cgi
index 7f5e889d8..aa3ff0091 100644
--- a/httemplate/view/svc_hardware.cgi
+++ b/httemplate/view/svc_hardware.cgi
@@ -15,15 +15,15 @@ my %labels = map { $_ => ( ref($fields->{$_})
} keys %$fields;
my $model = { field => 'typenum',
type => 'text',
- value => sub { $_[0]->hardware_type->description }
+ value_callback => sub { $_[0]->hardware_type->description }
};
my $status = { field => 'statusnum',
type => 'text',
- value => sub { $_[0]->status_label }
+ value_callback => sub { $_[0]->status_label }
};
my $note = { field => 'note',
type => 'text',
- value => sub { encode_entities($_[0]->note) }
+ value_callback => sub { encode_entities($_[0]->note) }
};
my @fields = (