From d19eb8a333fd8cfc7d2a8b773496fffa3b1d69f8 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 23 Oct 2013 15:42:48 -0700 Subject: [PATCH] fix disabling of package and customer categories, RT#25110 --- httemplate/edit/elements/class_Common.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/httemplate/edit/elements/class_Common.html b/httemplate/edit/elements/class_Common.html index c5fe7f153..8f33cd252 100644 --- a/httemplate/edit/elements/class_Common.html +++ b/httemplate/edit/elements/class_Common.html @@ -30,7 +30,13 @@ unless ( $opt{'nocat'} ) { my $fields = [ 'classname', (scalar(@category) - ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>$category_table, 'name_col'=>'categoryname' } + ? { field => 'categorynum', + type => 'select-table', + table => $category_table, + hashref => { 'disabled' => '' }, + name_col => 'categoryname', + empty_label => '(none)', + } : { field=>'categorynum', type=>'hidden' } ), { field=>'disabled', type=>'checkbox', value=>'Y', }, -- 2.11.0