WebGUI::Form::Url::getValue returns blank rather than undef for blank fields

This commit is contained in:
David Delikat 2009-01-27 20:05:13 +00:00
parent 0a8cf1c9f7
commit 3bbc8a7d4b
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
7.6.10
- fixed #9577: WebGUI::Form::Url::getValue returns blank rather than undef for blank fields
- added test for splitTag function recently added to HTML module
- fixed #9455: fixed synopsis to pick out html paragraphs, fixed FeedPP fields to scalar when blank
- fixed: With autocommit and no comments on, making a shortcut of an asset takes you to that asset's view.

View file

@ -92,7 +92,7 @@ sub getValue {
$value =~ tr/\r\n//d;
# empty
if ($value eq "" || $value =~ m{^http://$}i) {
return undef;
return "";
}
# proper email url
elsif ($value =~ /mailto:/) {