summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-02-19 15:34:47 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-02-20 14:33:50 -0600
commitd77b69f1bdf85945fefb9b6952cbd815118c0154 (patch)
tree2df2803efe172fa7e0ec92aa74107f8e34666493
parent428a33ad6d0e01621717840d2db4861f4bee6c21 (diff)
RT#28246: Add more details to Change History for Discounts [actually fixed the bug]
-rw-r--r--httemplate/elements/change_history_common.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index 9fc85aa53..2d2c4c0be 100644
--- a/httemplate/elements/change_history_common.html
+++ b/httemplate/elements/change_history_common.html
@@ -191,7 +191,10 @@ my %h_table_labelsub = (
my $discounts = {};
my $discount_descripsub = sub {
my($item) = @_;
- $pkgpart{$item->pkgpart} ||= $item->part_pkg->pkg;
+ $pkgpart{$item->pkgpart} ||= qsearchs({
+ 'table' => 'part_pkg',
+ 'hashref' => {'pkgpart' => $item->pkgpart}
+ })->pkg;
my $dnum = $item->discountnum;
$discounts->{$dnum} ||= qsearchs({
'table'=>'discount',