summaryrefslogtreecommitdiff
path: root/httemplate/edit/svc_dsl.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-07-11 02:09:16 -0700
committerIvan Kohler <ivan@freeside.biz>2012-07-11 02:09:16 -0700
commit73c83632921705248b1ebf68c561852b5e0e7144 (patch)
tree7a7c1ede0de1003b8e8de7ddcfc6a5a2f4145433 /httemplate/edit/svc_dsl.cgi
parenteea8f640d0008d8b7a2987cc530cbec157cc652f (diff)
Vendor Qualification ID is now editable if empty, RT#18405, RT#18313
Diffstat (limited to 'httemplate/edit/svc_dsl.cgi')
-rw-r--r--httemplate/edit/svc_dsl.cgi24
1 files changed, 18 insertions, 6 deletions
diff --git a/httemplate/edit/svc_dsl.cgi b/httemplate/edit/svc_dsl.cgi
index 1aeadb376..36345b9c5 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