From 268392734dc3a0ef3f81cc30343696395d566af6 Mon Sep 17 00:00:00 2001 From: jayce Date: Wed, 17 Oct 2007 16:07:59 +0000 Subject: [PATCH] insert_reason only worked if you passed in an existing reason, the code to insert a new reason was in place, but didn't let the new reason get used. Code to do this was already in place, just not utilized. --- FS/FS/cust_pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index a37abe239..e09b8ab62 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -1724,7 +1724,7 @@ sub insert_reason { my $cust_pkg_reason = new FS::cust_pkg_reason({ 'pkgnum' => $self->pkgnum, - 'reasonnum' => $options{'reason'}, + 'reasonnum' => $reasonnum, 'otaker' => $otaker, 'date' => $options{'date'} ? $options{'date'} -- 2.11.0