[freeside-commits] branch FREESIDE_2_3_BRANCH updated. d19eb8a333fd8cfc7d2a8b773496fffa3b1d69f8

Ivan ivan at 420.am
Wed Oct 23 15:42:50 PDT 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  d19eb8a333fd8cfc7d2a8b773496fffa3b1d69f8 (commit)
      from  49d30c8722afe66013eeca25b7fb2937d2f34307 (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 d19eb8a333fd8cfc7d2a8b773496fffa3b1d69f8
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Oct 23 15:42:48 2013 -0700

    fix disabling of package and customer categories, RT#25110

diff --git a/httemplate/edit/elements/class_Common.html b/httemplate/edit/elements/class_Common.html
index c5fe7f1..8f33cd2 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', },

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/elements/class_Common.html |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list