[freeside-commits] branch master updated. c78ac03d2e45a2979523d8c8999ab8714a58941f

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


The branch, master has been updated
       via  c78ac03d2e45a2979523d8c8999ab8714a58941f (commit)
      from  68de99533d0612144562b0ecf8e95b3d89aa9a18 (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 c78ac03d2e45a2979523d8c8999ab8714a58941f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Oct 23 15:42:46 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 0a0916e..723227f 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