summaryrefslogtreecommitdiff
path: root/FS/FS/payinfo_Mixin.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-03-10 07:04:12 -0800
committerIvan Kohler <ivan@freeside.biz>2017-03-10 07:04:12 -0800
commitf77cbf2281ef5ea2e0b81b64fdd1dd78fca3e543 (patch)
tree36068bd5ddb2295dd9608f36831a3232a6f0e6bc /FS/FS/payinfo_Mixin.pm
parentc13b6c8f4b9876aa8f91e1c14d3c208ac0d189e9 (diff)
Revert "remove old test files"
This reverts commit c13b6c8f4b9876aa8f91e1c14d3c208ac0d189e9.
Diffstat (limited to 'FS/FS/payinfo_Mixin.pm')
-rw-r--r--FS/FS/payinfo_Mixin.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm
index e944099..01b2226 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;