summaryrefslogtreecommitdiff
path: root/httemplate/edit/payment_gateway.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-08-07 11:21:19 -0700
committerMark Wells <mark@freeside.biz>2013-08-07 11:21:19 -0700
commit0fc8ceb69a9f44bd1a93b511139f76c977fdefaf (patch)
treeef0bb1db60166fbd8f08aa240585abe079cb8f07 /httemplate/edit/payment_gateway.html
parentb0d36fb26e247d430cddbb65bc4c739153992755 (diff)
clarify payment gateway type when editing, #24212
Diffstat (limited to 'httemplate/edit/payment_gateway.html')
-rw-r--r--httemplate/edit/payment_gateway.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/edit/payment_gateway.html b/httemplate/edit/payment_gateway.html
index 7cfab71d8..17709c84c 100644
--- a/httemplate/edit/payment_gateway.html
+++ b/httemplate/edit/payment_gateway.html
@@ -110,8 +110,7 @@ my @actions = (
'Authorization Only,Post Authorization',
);
-my $fields = [
- {
+my $fields = [ {
field => 'gateway_namespace',
type => 'select',
options => [ qw(
@@ -164,8 +163,11 @@ my $fields = [
my $field_callback = sub {
my ($cgi, $object, $field_hashref ) = @_;
if ($object->gatewaynum) {
- if ( $field_hashref->{field} =~ /gateway_(module|namespace)/ ) {
+ if ( $field_hashref->{field} eq 'gateway_module' ) {
+ $field_hashref->{type} = 'fixed';
+ } elsif ( $field_hashref->{field} eq 'gateway_namespace' ) {
$field_hashref->{type} = 'fixed';
+ $field_hashref->{formatted_value} = $object->namespace_description;
}
}
};