[freeside-commits] branch master updated. a70498f14ae5d3be7f57ce81fef703b869ccdf0a
Jonathan Prykop
jonathan at 420.am
Thu Feb 19 13:07:32 PST 2015
The branch, master has been updated
via a70498f14ae5d3be7f57ce81fef703b869ccdf0a (commit)
from 53a39f74f4735253591e6df083522b3a3bbacd6d (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 a70498f14ae5d3be7f57ce81fef703b869ccdf0a
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Thu Feb 19 15:05:07 2015 -0600
RT#28246: Add more details to Change History for Discounts [better error handling]
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index 9fc85aa..c858ec1 100644
--- a/httemplate/elements/change_history_common.html
+++ b/httemplate/elements/change_history_common.html
@@ -191,6 +191,8 @@ my %h_table_labelsub = (
my $discounts = {};
my $discount_descripsub = sub {
my($item) = @_;
+ die "Could not find part_pkg for pkgpart " . $item->pkgpart
+ unless $item->part_pkg;
$pkgpart{$item->pkgpart} ||= $item->part_pkg->pkg;
my $dnum = $item->discountnum;
$discounts->{$dnum} ||= qsearchs({
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/change_history_common.html | 2 ++
1 file changed, 2 insertions(+)
More information about the freeside-commits
mailing list