[freeside-commits] branch FREESIDE_3_BRANCH updated. 0fc8ceb69a9f44bd1a93b511139f76c977fdefaf

Mark Wells mark at 420.am
Wed Aug 7 11:21:25 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  0fc8ceb69a9f44bd1a93b511139f76c977fdefaf (commit)
      from  b0d36fb26e247d430cddbb65bc4c739153992755 (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 0fc8ceb69a9f44bd1a93b511139f76c977fdefaf
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Aug 7 11:21:19 2013 -0700

    clarify payment gateway type when editing, #24212

diff --git a/httemplate/edit/payment_gateway.html b/httemplate/edit/payment_gateway.html
index 7cfab71..17709c8 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;
     }
   }
 };

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/payment_gateway.html |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list