From: Ivan Kohler Date: Wed, 23 Oct 2013 22:42:46 +0000 (-0700) Subject: fix disabling of package and customer categories, RT#25110 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c78ac03d2e45a2979523d8c8999ab8714a58941f fix disabling of package and customer categories, RT#25110 --- diff --git a/httemplate/edit/elements/class_Common.html b/httemplate/edit/elements/class_Common.html index 0a0916ebc..723227f23 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', },