[freeside-commits] branch FREESIDE_3_BRANCH updated. d77b69f1bdf85945fefb9b6952cbd815118c0154
Jonathan Prykop
jonathan at 420.am
Fri Feb 20 12:39:57 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via d77b69f1bdf85945fefb9b6952cbd815118c0154 (commit)
from 428a33ad6d0e01621717840d2db4861f4bee6c21 (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 d77b69f1bdf85945fefb9b6952cbd815118c0154
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Thu Feb 19 15:34:47 2015 -0600
RT#28246: Add more details to Change History for Discounts [actually fixed the bug]
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index 9fc85aa..2d2c4c0 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',
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/change_history_common.html | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list