summaryrefslogtreecommitdiff
path: root/httemplate/elements/change_history_common.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-02-19 15:05:07 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-02-19 15:05:07 -0600
commita70498f14ae5d3be7f57ce81fef703b869ccdf0a (patch)
treece05458b1c9a95c4c13b4b9c6d6ba3a8b417ba80 /httemplate/elements/change_history_common.html
parent53a39f74f4735253591e6df083522b3a3bbacd6d (diff)
RT#28246: Add more details to Change History for Discounts [better error handling]
Diffstat (limited to 'httemplate/elements/change_history_common.html')
-rw-r--r--httemplate/elements/change_history_common.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index 9fc85aa53..c858ec123 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({