[freeside-commits] branch master updated. 47153aae5c2fc00316654e7277fccd45f72ff611
Ivan
ivan at 420.am
Sun Apr 22 14:14:40 PDT 2012
The branch, master has been updated
via 47153aae5c2fc00316654e7277fccd45f72ff611 (commit)
from ccc2208b2b7d09a9b1671846bc76a060649e64a4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 47153aae5c2fc00316654e7277fccd45f72ff611
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Apr 22 14:14:39 2012 -0700
fix customer category selection, RT#17487
diff --git a/httemplate/edit/elements/class_Common.html b/httemplate/edit/elements/class_Common.html
index a0025b3..0a0916e 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', },
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/elements/class_Common.html | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list