summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_export.cgi
diff options
context:
space:
mode:
authorivan <ivan>2003-01-13 07:26:52 +0000
committerivan <ivan>2003-01-13 07:26:52 +0000
commit27ee26568a1a58b0fb65b7269a43cd3da6d66b35 (patch)
tree425d567a4e516b2587ca479d5ab717fb2ee4dec5 /httemplate/edit/part_export.cgi
parentdb57fc8a00107bdbf5830b5c11b53dd0cfd7ec3b (diff)
another Pg 7.3 fix
Diffstat (limited to 'httemplate/edit/part_export.cgi')
-rw-r--r--httemplate/edit/part_export.cgi10
1 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi
index d64526d..bdf41e2 100644
--- a/httemplate/edit/part_export.cgi
+++ b/httemplate/edit/part_export.cgi
@@ -49,11 +49,11 @@ my $widget = new HTML::Widgets::SelectLayers(
my $label = $optinfo->{label};
my $type = defined($optinfo->{type}) ? $optinfo->{type} : 'text';
my $value = $cgi->param($option)
- || $part_export->option($option)
- || ( (exists $optinfo->{default} && !$part_export->exportnum)
- ? $optinfo->{default}
- : ''
- );
+ || ( $part_export->exportnum && $part_export->option($option) )
+ || ( (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">!;