diff options
Diffstat (limited to 'httemplate/edit/process/cust_main_attach.cgi')
-rw-r--r-- | httemplate/edit/process/cust_main_attach.cgi | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/httemplate/edit/process/cust_main_attach.cgi b/httemplate/edit/process/cust_main_attach.cgi index 092714122..291135718 100644 --- a/httemplate/edit/process/cust_main_attach.cgi +++ b/httemplate/edit/process/cust_main_attach.cgi @@ -25,8 +25,6 @@ $cgi->param('attachnum') =~ /^(\d*)$/ my $attachnum = $1; my $curuser = $FS::CurrentUser::CurrentUser; -my $otaker = $curuser->name; -$otaker = $curuser->username if ($otaker eq "User, Legacy"); my $delete = $cgi->param('delete'); my $undelete = $cgi->param('undelete'); @@ -36,7 +34,7 @@ my $new = new FS::cust_attachment ( { attachnum => $attachnum, custnum => $custnum, _date => time, - otaker => $otaker, + usernum => $curuser->usernum, disabled => '', }); my $old; |