summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2002-04-16 08:52:38 +0000
committerivan <ivan>2002-04-16 08:52:38 +0000
commit1290c097176adcd62d48b1250233d53adb4b50a5 (patch)
treeb488ad61ef4a79dbddce0c8361cf122ab4c36f0b /httemplate/edit
parent993db36062c970439623b9b4e0cb7217a4acf9cc (diff)
move the last of the real-time exports out of svc_acct.pm and into part_export
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/part_export.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi
index b72b277c9..4affeb48f 100644
--- a/httemplate/edit/part_export.cgi
+++ b/httemplate/edit/part_export.cgi
@@ -48,7 +48,9 @@ my $widget = new HTML::Widgets::SelectLayers(
# foreach my $option ( qw(url login password groupID ) ) {
my $optinfo = $exports->{$layer}{options}{$option};
my $label = $optinfo->{label};
- my $value = $cgi->param($option) || $part_export->option($option);
+ my $value = $cgi->param($option)
+ || $part_export->option($option)
+ || (exists $optinfo->{default} ? $optinfo->{default} : '');
$html .= qq!<TR><TD ALIGN="right">$label</TD>!.
qq!<TD><INPUT TYPE="text" NAME="$option" VALUE="$value"></TD>!.
'</TR>';