@@ -972,7 +972,8 @@ sub object_end_of_create {
972972 # Add default searches to new user's footer
973973 my $dbh = Bugzilla-> dbh;
974974
975- my $sharer = Bugzilla::User
-> new({
name => ' [email protected] ' })
or return ;
975+ my $sharer = Bugzilla::User-> new({name => Bugzilla-> localconfig-> nobody_user})
976+ or return ;
976977 my $group = Bugzilla::Group-> new({name => ' everyone' }) or return ;
977978
978979 foreach my $definition (@default_named_queries ) {
@@ -1012,7 +1013,7 @@ sub _bug_reporters_hw_os {
10121013sub _bug_is_unassigned {
10131014 my ($self ) = @_ ;
10141015 my $assignee = $self -> assigned_to-> login;
1015- return $assignee eq ' [email protected] ' ||
$assignee =~
/ @(?!invalid).+\. bugs$ / ;
1016+ return $assignee eq Bugzilla -> localconfig -> nobody_user || $assignee =~ / @(?!invalid).+\. bugs$ / ;
10161017}
10171018
10181019sub _bug_has_current_patch {
@@ -1192,7 +1193,7 @@ sub object_start_of_update {
11921193
11931194 # and the assignee isn't a real person
11941195 return
1195- unless $new_bug -> assigned_to
-> login
eq ' [email protected] ' 1196+ unless $new_bug -> assigned_to-> login eq Bugzilla -> localconfig -> nobody_user
11961197 || $new_bug -> assigned_to-> login =~ / @(?!invalid).+\. bugs$ / ;
11971198
11981199 # and the user can set the status to NEW
@@ -1927,7 +1928,8 @@ sub _post_employee_incident_bug {
19271928 my ($investigate_bug , $ssh_key_bug );
19281929 my $old_user = Bugzilla-> user;
19291930 eval {
1930- Bugzilla
-> set_user(Bugzilla::User
-> new({
name => ' [email protected] ' }));
1931+ Bugzilla-> set_user(Bugzilla::User-> new(
1932+ {name => Bugzilla-> localconfig-> nobody_user}));
19311933 my $new_user = Bugzilla-> user;
19321934
19331935 # HACK: User needs to be in the editbugs and primary bug's group to allow
0 commit comments