[freeside-commits] branch FREESIDE_3_BRANCH updated. 2266af65988c1fa5b849dc3c617c3f642601f867

Ivan ivan at 420.am
Sun Mar 15 16:21:14 PDT 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  2266af65988c1fa5b849dc3c617c3f642601f867 (commit)
      from  04d785086c73796a05596cb9789d323b5e144752 (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 2266af65988c1fa5b849dc3c617c3f642601f867
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Mar 15 16:20:49 2015 -0700

    load billing events faster, RT#21572

diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm
index 8a31185..695b4ca 100644
--- a/FS/FS/ClientAPI/MasonComponent.pm
+++ b/FS/FS/ClientAPI/MasonComponent.pm
@@ -100,6 +100,7 @@ my %session_callbacks = (
     $args{part_pkg} = \@part_pkg;
     $args{first_svc} = \@first_svc;
     $args{no_comment} = 1;
+    $args{label_callback} = sub { shift->pkg_comment };
     @$argsref = ( %args );
     return ''; #no error
 
diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html
index bf58191..237d7df 100644
--- a/httemplate/elements/select-part_pkg.html
+++ b/httemplate/elements/select-part_pkg.html
@@ -21,7 +21,7 @@ Example:
      'agent_null'     => 1,
      'name_col'       => 'pkg',
      'empty_label'    => 'Select package', #should this be the default?
-     'label_callback' => $opt{'label_callback'} || sub { shift->pkg_comment },
+     'label_callback' => $opt{'label_callback'} || sub { shift->pkg_comment_only },
      'hashref'        => \%hash,
      %opt,
 &>
diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html
index 0db989a..23916d9 100644
--- a/httemplate/elements/tr-select-cust-part_pkg.html
+++ b/httemplate/elements/tr-select-cust-part_pkg.html
@@ -91,11 +91,12 @@
   <TH ALIGN="right"><% mt('Package') |h %></TH>
   <TD COLSPAN=7>
     <& /elements/select-cust-part_pkg.html,
-                 'curr_value'    => $opt{'curr_value'}, #$pkgpart
-                 'classnum'      => $opt{'classnum'},
-                 'cust_main'     => $opt{'cust_main'},  #$cust_main
-                 'prospect_main' => $opt{'prospect_main'},  #$prospect_main
-                 'onchange'      => 'pkg_changed',
+                 'curr_value'     => $opt{'curr_value'}, #$pkgpart
+                 'classnum'       => $opt{'classnum'},
+                 'cust_main'      => $opt{'cust_main'},  #$cust_main
+                 'prospect_main'  => $opt{'prospect_main'},  #$prospect_main
+                 'onchange'       => 'pkg_changed',
+                 'label_callback' => sub { shift->pkg_comment },
     &>
   </TD>
 </TR>

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

Summary of changes:
 FS/FS/ClientAPI/MasonComponent.pm                |    1 +
 httemplate/elements/select-part_pkg.html         |    2 +-
 httemplate/elements/tr-select-cust-part_pkg.html |   11 ++++++-----
 3 files changed, 8 insertions(+), 6 deletions(-)




More information about the freeside-commits mailing list