summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-03-13 09:21:36 +0000
committerivan <ivan>2007-03-13 09:21:36 +0000
commite8e3d8d1e1d0b77fcbf3327805862c2406f9f30d (patch)
treedc73f67e898eb63c28d9f93abb0eb72559caf1f7
parent771c535b7c93170af8d01c91c080a95d6cae5470 (diff)
okay, so this should link to usernum now. but until then, it should be ->username, not ->name, eek. causing "Error: Error inserting cust_pkg_reason: ERROR: value to long for type character varying(32)" errors and will be harder to normalize back to usernum when we fix that
-rw-r--r--FS/FS/cust_pkg.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index b2ef2a259..3e36ae242 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -1529,9 +1529,7 @@ sub order {
sub insert_reason {
my ($self, %options) = @_;
- my $otaker = $FS::CurrentUser::CurrentUser->name;
- $otaker = $FS::CurrentUser::CurrentUser->username
- if (($otaker) eq "User, Legacy");
+ my $otaker = $FS::CurrentUser::CurrentUser->username;
my $cust_pkg_reason =
new FS::cust_pkg_reason({ 'pkgnum' => $self->pkgnum,