[freeside-commits] branch master updated. a088e707d45a3e88ebc3ce6231c044b58c2347fb
Mark Wells
mark at 420.am
Wed Aug 7 11:21:25 PDT 2013
The branch, master has been updated
via a088e707d45a3e88ebc3ce6231c044b58c2347fb (commit)
from 326d5fb8855e84a0932fca99e54049d71d973cc4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a088e707d45a3e88ebc3ce6231c044b58c2347fb
Author: Mark Wells <mark at freeside.biz>
Date: Wed Aug 7 11:21:03 2013 -0700
clarify payment gateway type when editing, #24212
diff --git a/httemplate/edit/payment_gateway.html b/httemplate/edit/payment_gateway.html
index 37618d6..0cd93e4 100644
--- a/httemplate/edit/payment_gateway.html
+++ b/httemplate/edit/payment_gateway.html
@@ -111,8 +111,7 @@ my @actions = (
'Authorization Only,Post Authorization',
);
-my $fields = [
- {
+my $fields = [ {
field => 'gateway_namespace',
type => 'select',
options => [ qw(
@@ -165,8 +164,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;
}
}
};
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/payment_gateway.html | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list