X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpayinfo_Mixin.pm;h=01b222634130d6b6ee2fe15a83be00fd07b30f5f;hp=e944099fbc42a4d45945396bc79649fd76f12d4d;hb=f77cbf2281ef5ea2e0b81b64fdd1dd78fca3e543;hpb=c13b6c8f4b9876aa8f91e1c14d3c208ac0d189e9 diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm index e944099fb..01b222634 100644 --- a/FS/FS/payinfo_Mixin.pm +++ b/FS/FS/payinfo_Mixin.pm @@ -445,11 +445,11 @@ sub upgrade_set_cardtype { my $class = shift; my $table = $class->table or die "upgrade_set_cardtype needs a table"; - if ( ! FS::upgrade_journal->is_done("${table}__set_cardtype2") ) { + if ( ! FS::upgrade_journal->is_done("${table}__set_cardtype") ) { my $job = FS::queue->new({ job => 'FS::payinfo_Mixin::process_set_cardtype' }); my $error = $job->insert($table); die $error if $error; - FS::upgrade_journal->set_done("${table}__set_cardtype2"); + FS::upgrade_journal->set_done("${table}__set_cardtype"); } } @@ -461,7 +461,7 @@ sub process_set_cardtype { local $ignore_masked_payinfo = 1; my $search = FS::Cursor->new({ table => $table, - extra_sql => q[ WHERE payby IN('CARD','DCRD') AND ( paycardtype IS NULL or paycardtype = 'Not a credit card' ) ], + extra_sql => q[ WHERE payby IN('CARD','DCRD') AND paycardtype IS NULL ], }); while (my $record = $search->fetch) { my $error = $record->replace;