summaryrefslogtreecommitdiff
path: root/FS/FS/cust_payby.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-06-03 22:58:35 -0700
committerMark Wells <mark@freeside.biz>2016-06-03 23:00:21 -0700
commit4924d635301e5c365d55b0c008f12e9cff40350f (patch)
treebdf33d7d47da993a97889596510758c7a9d0c573 /FS/FS/cust_payby.pm
parent948b9b8b79874f68bfe24f32035ce0d259da2a31 (diff)
ignore weight when editing DCRD/DCHK payment methods, #71176
Diffstat (limited to 'FS/FS/cust_payby.pm')
-rw-r--r--FS/FS/cust_payby.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm
index 623a44efc..62fa9be5f 100644
--- a/FS/FS/cust_payby.pm
+++ b/FS/FS/cust_payby.pm
@@ -715,6 +715,9 @@ sub cgi_hash_callback {
'CARD' => 'DCRD',
'CHEK' => 'DCHK',
);
+ # the payby selector gives the choice of CARD or CHEK (or others, but
+ # those are the ones with auto and on-demand versions). if the user didn't
+ # choose a weight, then they mean DCRD/DCHK.
$hashref->{payby} = $noauto{$hashref->{payby}}
if ! $hashref->{weight} && exists $noauto{$hashref->{payby}};