[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 7d0be88d111ab045b3279fb6c558dc2c3263245b

Ivan ivan at 420.am
Sun Apr 22 14:14:41 PDT 2012


The branch, FREESIDE_2_3_BRANCH has been updated
       via  7d0be88d111ab045b3279fb6c558dc2c3263245b (commit)
      from  23dcc60dec006733f467fe58fd1fbfe9af3188c2 (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 7d0be88d111ab045b3279fb6c558dc2c3263245b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Apr 22 14:14:40 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 69da4db..c5fe7f1 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