X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2Fpart_export%2Fbroadband_snmp.html;h=44b80f4d7c10ba5e3004bceb68504abeb97f6e09;hb=HEAD;hp=b4d57edd50647a1a501aae134661c397ff031ed1;hpb=3a02a1bce4190ce0d94883709e0a6c362bcb0af3;p=freeside.git diff --git a/httemplate/edit/elements/part_export/broadband_snmp.html b/httemplate/edit/elements/part_export/broadband_snmp.html index b4d57edd5..44b80f4d7 100644 --- a/httemplate/edit/elements/part_export/broadband_snmp.html +++ b/httemplate/edit/elements/part_export/broadband_snmp.html @@ -11,7 +11,7 @@ <& /elements/tr-input-text.html, label => 'Community', field => 'community', - curr_value => $part_export->option('community') || $opt{'export_info'}->{'options'}->{'community'}->{'default'}, + curr_value => $curr_value->{'community'}, &> <& /elements/tr-checkbox.html, label => 'Send IP address changes to new address', @@ -75,7 +75,7 @@ function receive_mib(obj, rownum) { - + <& /elements/auto-table.html, @@ -88,6 +88,10 @@ function receive_mib(obj, rownum) { <%init> my %opt = @_; my $part_export = $opt{part_export} || FS::part_export->new; +my $curr_value = {}; +$curr_value->{'community'} = ($opt{'part_export'} && $opt{'part_export'}->exportnum) + ? $part_export->option('community') + : $opt{'export_info'}->{'options'}->{'community'}->{'default'}; my @actions = split("\n", $part_export->option('action')); my @oids = split("\n", $part_export->option('oid'));