From: Don Armstrong Date: Sun, 12 Mar 2017 14:43:30 +0000 (-0700) Subject: keep done/owner/submitter NULL if there is no submitter/done/owner X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6ab745401bfbd1f8cb91ffdc30d8d9580010ea7b;p=debbugs.git keep done/owner/submitter NULL if there is no submitter/done/owner --- diff --git a/Debbugs/DB/Load.pm b/Debbugs/DB/Load.pm index bad48b5..dfc1db9 100644 --- a/Debbugs/DB/Load.pm +++ b/Debbugs/DB/Load.pm @@ -162,6 +162,9 @@ sub load_bug { submitter => 'originator', ); for my $addr_type (keys %addr_map) { + $bug->{$addr_type} = undef; + next unless defined $data->{$addr_map{$addr_type}} and + length($data->{$addr_map{$addr_type}}); $bug->{$addr_type} = $s->resultset('Correspondent')-> get_correspondent_id($data->{$addr_map{$addr_type}})