summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2007-03-13 09:21:35 +0000
committerivan <ivan>2007-03-13 09:21:35 +0000
commit80d9bab5b9e16abfd7af996c79511bbf0c4a833b (patch)
tree6a375a21fdfdbf309609c3f93cc70c7d70b765e3 /FS
parenta79f6e69559ec438a178f73b8b4d51d6f12c0d36 (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
Diffstat (limited to 'FS')
-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,