From a70498f14ae5d3be7f57ce81fef703b869ccdf0a Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 19 Feb 2015 15:05:07 -0600 Subject: [PATCH] RT#28246: Add more details to Change History for Discounts [better error handling] --- httemplate/elements/change_history_common.html | 2 ++ 1 file changed, 2 insertions(+) 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({ -- 2.11.0