X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_main_note.cgi;h=f09189aa91af1097fd62caf42aa0d5c88066e272;hb=5f71517b3de709a86c89dbacc6247cd6e52f4c42;hp=5127c72d14b37b6346cbc853e93d69f48efbd376;hpb=6097db7667840f4a65c0012da009528635a7f82e;p=freeside.git diff --git a/httemplate/edit/process/cust_main_note.cgi b/httemplate/edit/process/cust_main_note.cgi index 5127c72d1..f09189aa9 100755 --- a/httemplate/edit/process/cust_main_note.cgi +++ b/httemplate/edit/process/cust_main_note.cgi @@ -18,16 +18,12 @@ $cgi->param('notenum') =~ /^(\d*)$/ or die "Illegal notenum: ". $cgi->param('notenum'); my $notenum = $1; -my $otaker = $FS::CurrentUser::CurrentUser->name; -$otaker = $FS::CurrentUser::CurrentUser->username - if ($otaker eq "User, Legacy"); - my $new = new FS::cust_main_note ( { notenum => $notenum, custnum => $custnum, _date => time, - otaker => $otaker, - comments => $cgi->param('comment'), + usernum => $FS::CurrentUser::CurrentUser->usernum, + comments => scalar($cgi->param('comment')), } ); my $error;