summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_export.cgi
diff options
context:
space:
mode:
authorivan <ivan>2002-08-24 07:20:24 +0000
committerivan <ivan>2002-08-24 07:20:24 +0000
commit86dccb51c86156fcf06b981a48fd2a40d204cc53 (patch)
treeb07e32fb7f97707a1cd3c542659fc2ed2e6856d6 /httemplate/edit/part_export.cgi
parent22abdc37d4ec5699b62d295dc7ec1e41a8daf23b (diff)
don't substitute defaults for empty options when editing exports
Diffstat (limited to 'httemplate/edit/part_export.cgi')
-rw-r--r--httemplate/edit/part_export.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi
index 486bd43..bd427aa 100644
--- a/httemplate/edit/part_export.cgi
+++ b/httemplate/edit/part_export.cgi
@@ -50,7 +50,10 @@ my $widget = new HTML::Widgets::SelectLayers(
my $type = defined($optinfo->{type}) ? $optinfo->{type} : 'text';
my $value = $cgi->param($option)
|| $part_export->option($option)
- || (exists $optinfo->{default} ? $optinfo->{default} : '');
+ || ( (exists $optinfo->{default} && !$part_export->exportnum)
+ ? $optinfo->{default}
+ : ''
+ );
$html .= qq!<TR><TD ALIGN="right">$label</TD><TD>!;
if ( $type eq 'select' ) {
$html .= qq!<SELECT NAME="$option">!;