[freeside-commits] freeside/FS/FS otaker_Mixin.pm,1.4,1.5
Ivan,,,
ivan at wavetail.420.am
Sat Jun 5 14:44:53 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv18990
Modified Files:
otaker_Mixin.pm
Log Message:
should really really fix the cust_main_note upgrade bullshit, argh, RT#8580
Index: otaker_Mixin.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/otaker_Mixin.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- otaker_Mixin.pm 5 Jun 2010 20:18:47 -0000 1.4
+++ otaker_Mixin.pm 5 Jun 2010 21:44:51 -0000 1.5
@@ -52,14 +52,16 @@
eval { $record->otaker($record->otaker) };
if ( $@ ) {
my $username = $record->otaker;
+ my($lastname, $firstname) = ( 'User', 'Legacy' );
if ( $username =~ /^(.+), (.+)$/ ) {
- $username = lc($2.$1);
+ ($lastname, $firstname) = ($1, $2);
+ $username = lc($firstname.$lastname);
}
my $access_user = new FS::access_user {
'username' => $username,
'_password' => 'CHANGEME',
- 'first' => 'Legacy',
- 'last' => 'User',
+ 'first' => $firstname,
+ 'last' => $lastname,
'disabled' => 'Y',
};
my $error = $access_user->insert;
More information about the freeside-commits
mailing list