summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-10-23 15:42:47 -0700
committerIvan Kohler <ivan@freeside.biz>2013-10-23 15:42:47 -0700
commit493f7af595ce989a2dde003f36b6ac20cd3d0178 (patch)
treed88c886f498a473a7534b9257070d0143fa7f0b3 /httemplate
parent376774ee76640c2115aec44416e02d256117c699 (diff)
fix disabling of package and customer categories, RT#25110
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/elements/class_Common.html8
1 files changed, 7 insertions, 1 deletions
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', },