projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8ba370
)
fix options in gateway adding
author
ivan
<ivan>
Tue, 13 Dec 2005 03:13:25 +0000
(
03:13
+0000)
committer
ivan
<ivan>
Tue, 13 Dec 2005 03:13:25 +0000
(
03:13
+0000)
httemplate/edit/process/payment_gateway.html
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/payment_gateway.html
b/httemplate/edit/process/payment_gateway.html
index
0fc5b66
..
b9e4d47
100644
(file)
--- a/
httemplate/edit/process/payment_gateway.html
+++ b/
httemplate/edit/process/payment_gateway.html
@@
-10,11
+10,16
@@
my $new = new FS::payment_gateway ( {
} fields('payment_gateway')
} );
+my @options = split(/\r?\n/, $cgi->param('gateway_options') );
+pop @options
+ if scalar(@options) % 2 && $options[-1] =~ /^\s*$/;
+my %options = @options;
+
my $error;
if ( $gatewaynum ) {
$error=$new->replace($old);
} else {
- $error=$new->insert;
+ $error=$new->insert
(\%options)
;
$gatewaynum=$new->getfield('gatewaynum');
}