From: ivan Date: Tue, 13 Mar 2007 09:21:35 +0000 (+0000) Subject: okay, so this should link to usernum now. but until then, it should be ->username... X-Git-Tag: TRIXBOX_2_6~595 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=80d9bab5b9e16abfd7af996c79511bbf0c4a833b 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 --- 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,