Bug 84586 - Treat int/double/dateTime empty string as nil

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1348 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2011-08-24 10:05:52 +00:00
parent 540ca2ed7d
commit 464884b69b
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ sub datetime_format_inbound {
sub datetime_format_outbound {
my ($self, $date) = @_;
return '1970-01-01T00:00:00' if !$date;
return '' if !$date;
my $time = $date;
if (blessed($date)) {

View File

@ -255,7 +255,7 @@ sub BEGIN {
my $method = 'as_' . $type;
*$method = sub {
my ($self, $value) = @_;
if (!defined($value)) {
if (!defined($value) || $value eq '') {
return as_nil();
}
else {