summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjayce <jayce>2007-10-17 16:07:59 +0000
committerjayce <jayce>2007-10-17 16:07:59 +0000
commit268392734dc3a0ef3f81cc30343696395d566af6 (patch)
treefb0e28cd7fc8794583d5307a18303dc33d3c8d46
parentdb59804f62ce86823a2fa22d707f455fb57b53d3 (diff)
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.
-rw-r--r--FS/FS/cust_pkg.pm2
1 files changed, 1 insertions, 1 deletions
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'}