[freeside-commits] branch master updated. 73c83632921705248b1ebf68c561852b5e0e7144

Ivan ivan at 420.am
Wed Jul 11 02:09:20 PDT 2012


The branch, master has been updated
       via  73c83632921705248b1ebf68c561852b5e0e7144 (commit)
      from  eea8f640d0008d8b7a2987cc530cbec157cc652f (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 73c83632921705248b1ebf68c561852b5e0e7144
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jul 11 02:09:16 2012 -0700

    Vendor Qualification ID is now editable if empty, RT#18405, RT#18313

diff --git a/httemplate/edit/svc_dsl.cgi b/httemplate/edit/svc_dsl.cgi
index 1aeadb3..36345b9 100644
--- a/httemplate/edit/svc_dsl.cgi
+++ b/httemplate/edit/svc_dsl.cgi
@@ -52,12 +52,24 @@ my $edit_cb = sub {
         elsif($export->exporttype eq 'ikano') {
             @fields = ( 'password', 'monitored', );
 
-            foreach my $hf ( keys %$ti_fields ) {
-                push @fields, {
-                    field => $hf,
-                    type => 'hidden',
-                    value => $svc_x->$hf,
-                } unless ( $hf eq 'password' || $hf eq 'monitored' );
+            if ( $svc_x->vendor_qual_id ) {
+              push @fields, { field => 'vendor_qual_id',
+                              type  => 'hidden',
+                              value => $svc_x->vendor_qual_id,
+                            };
+            } else {
+              push @fields, 'vendor_qual_id';
+            }
+
+            foreach my $hf (
+              grep { $_ !~ /^(password|monitored|vendor_qual_id)$/ }
+                keys %$ti_fields
+            ) {
+              push @fields, {
+                field => $hf,
+                type  => 'hidden',
+                value => $svc_x->$hf,
+              };
             }
         }
         # else add any other export-specific stuff here

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

Summary of changes:
 httemplate/edit/svc_dsl.cgi |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)




More information about the freeside-commits mailing list