[freeside-commits] branch FREESIDE_3_BRANCH updated. 493f7af595ce989a2dde003f36b6ac20cd3d0178

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


The branch, FREESIDE_3_BRANCH has been updated
       via  493f7af595ce989a2dde003f36b6ac20cd3d0178 (commit)
      from  376774ee76640c2115aec44416e02d256117c699 (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 493f7af595ce989a2dde003f36b6ac20cd3d0178
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Oct 23 15:42:47 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