projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22abdc3
)
don't substitute defaults for empty options when editing exports
author
ivan
<ivan>
Sat, 24 Aug 2002 07:20:24 +0000
(07:20 +0000)
committer
ivan
<ivan>
Sat, 24 Aug 2002 07:20:24 +0000
(07:20 +0000)
httemplate/edit/part_export.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/part_export.cgi
b/httemplate/edit/part_export.cgi
index
486bd43
..
bd427aa
100644
(file)
--- 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)
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">!;
$html .= qq!<TR><TD ALIGN="right">$label</TD><TD>!;
if ( $type eq 'select' ) {
$html .= qq!<SELECT NAME="$option">!;