forward port from branch_6_7

This commit is contained in:
Colin Kuskie 2005-11-01 19:35:17 +00:00
parent eb3024ca7e
commit 6c9f51ccd3
2 changed files with 13 additions and 2 deletions

View file

@ -61,7 +61,7 @@ Defaults to 10. The displayed size of the box for the date to be typed in.
=head4 noDate
By default a date is placed in the value field. Set this to "1" to leave it empty.
A default date is placed in the value field. Set this to "1" to leave it empty.
=head4 defaultValue
@ -125,7 +125,7 @@ Renders a date picker control.
sub toHtml {
my $self = shift;
if ($self->{noDate} ) {
if ($self->{_defaulted} && $self->{noDate} ) {
$self->{value} = '';
}
else {