diff options
author | Brian Medley <bpm@snafu.org> | 2012-04-22 18:48:00 -0500 |
---|---|---|
committer | Brian Medley <bpm@snafu.org> | 2012-04-22 18:48:00 -0500 |
commit | aa028b1f28a468df2a3d3a5ff03a856bba2c1254 (patch) | |
tree | 5feb5b93757f81f38725bc9bb658aef9852f594f | |
parent | 7118e89bc7d860ed82aa12b3e78d9f2d31afe597 (diff) | |
parent | 47153aae5c2fc00316654e7277fccd45f72ff611 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
-rw-r--r-- | httemplate/edit/elements/class_Common.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/elements/class_Common.html b/httemplate/edit/elements/class_Common.html index a0025b31f..0a0916ebc 100644 --- a/httemplate/edit/elements/class_Common.html +++ b/httemplate/edit/elements/class_Common.html @@ -22,14 +22,15 @@ my %opt = @_; my $table = $opt{'table'}; my @category; +my $category_table; unless ( $opt{'nocat'} ) { - ( my $category_table = $table ) =~ s/class/category/ or die; + ( $category_table = $table ) =~ s/class/category/ or die; @category = qsearch($category_table, { 'disabled' => '' }); } my $fields = [ 'classname', (scalar(@category) - ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>'pkg_category', 'name_col'=>'categoryname' } + ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>$category_table, 'name_col'=>'categoryname' } : { field=>'categorynum', type=>'hidden' } ), { field=>'disabled', type=>'checkbox', value=>'Y', }, |