@@ -972,7 +972,8 @@ sub object_end_of_create {
972
972
# Add default searches to new user's footer
973
973
my $dbh = Bugzilla-> dbh;
974
974
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 ;
976
977
my $group = Bugzilla::Group-> new({name => ' everyone' }) or return ;
977
978
978
979
foreach my $definition (@default_named_queries ) {
@@ -1012,7 +1013,7 @@ sub _bug_reporters_hw_os {
1012
1013
sub _bug_is_unassigned {
1013
1014
my ($self ) = @_ ;
1014
1015
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$ / ;
1016
1017
}
1017
1018
1018
1019
sub _bug_has_current_patch {
@@ -1192,7 +1193,7 @@ sub object_start_of_update {
1192
1193
1193
1194
# and the assignee isn't a real person
1194
1195
return
1195
- unless $new_bug -> assigned_to
-> login
eq ' [email protected] '
1196
+ unless $new_bug -> assigned_to-> login eq Bugzilla -> localconfig -> nobody_user
1196
1197
|| $new_bug -> assigned_to-> login =~ / @(?!invalid).+\. bugs$ / ;
1197
1198
1198
1199
# and the user can set the status to NEW
@@ -1927,7 +1928,8 @@ sub _post_employee_incident_bug {
1927
1928
my ($investigate_bug , $ssh_key_bug );
1928
1929
my $old_user = Bugzilla-> user;
1929
1930
eval {
1930
- Bugzilla
-> set_user(Bugzilla::User
-> new({
name => ' [email protected] ' }));
1931
+ Bugzilla-> set_user(Bugzilla::User-> new(
1932
+ {name => Bugzilla-> localconfig-> nobody_user}));
1931
1933
my $new_user = Bugzilla-> user;
1932
1934
1933
1935
# HACK: User needs to be in the editbugs and primary bug's group to allow
0 commit comments