diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 85863b4d0..0047cf8a8 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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. diff --git a/lib/WebGUI/Form/Url.pm b/lib/WebGUI/Form/Url.pm index 2b82f9bf9..5545bc796 100644 --- a/lib/WebGUI/Form/Url.pm +++ b/lib/WebGUI/Form/Url.pm @@ -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:/) {