diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-07-11 02:09:21 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-07-11 02:09:21 -0700 |
| commit | bcc29aef92ab9c3a3938dced8fb0e3b69a7547eb (patch) | |
| tree | 755fee21bd4c839e136e4d2592eb99ea093fda59 /httemplate | |
| parent | c782c3a735da8166b6a61a559d9398d91f750f15 (diff) | |
Vendor Qualification ID is now editable if empty, RT#18405, RT#18313
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/edit/svc_dsl.cgi | 24 |
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 |
