[freeside-commits] branch master updated. 8c5702cc86a16f25a9ceb9b822b2aac6a324afaa
Ivan
ivan at 420.am
Sun Mar 15 16:20:13 PDT 2015
The branch, master has been updated
via 8c5702cc86a16f25a9ceb9b822b2aac6a324afaa (commit)
from 66ee0ce238a80eb556eef61785600d84d3f8d85b (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 8c5702cc86a16f25a9ceb9b822b2aac6a324afaa
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Mar 15 16:20:08 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