[freeside-commits] branch FREESIDE_2_3_BRANCH updated. bcc29aef92ab9c3a3938dced8fb0e3b69a7547eb

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


The branch, FREESIDE_2_3_BRANCH has been updated
       via  bcc29aef92ab9c3a3938dced8fb0e3b69a7547eb (commit)
      from  c782c3a735da8166b6a61a559d9398d91f750f15 (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 bcc29aef92ab9c3a3938dced8fb0e3b69a7547eb
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jul 11 02:09:21 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