summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorBrian Medley <bpm@snafu.org>2012-04-22 18:50:10 -0500
committerBrian Medley <bpm@snafu.org>2012-04-22 18:50:10 -0500
commita97ff9dea55a716af9ea960aa217879950825874 (patch)
tree3f8729e7438a707d88da7cef0f56a757f5de3e46 /httemplate
parentf2b217ddc4840b0b536782f0aed6723a0e894f91 (diff)
parent7d0be88d111ab045b3279fb6c558dc2c3263245b (diff)
Merge branch 'FREESIDE_2_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_2_3_BRANCH
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/elements/class_Common.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/elements/class_Common.html b/httemplate/edit/elements/class_Common.html
index 69da4db31..c5fe7f153 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', },