File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -619,7 +619,16 @@ sub _get_new_bugmail_fields {
619619 my $value = $bug -> $name ;
620620
621621 if (ref $value eq ' ARRAY' ) {
622- $value = join (' , ' , @$value );
622+ my @new_values ;
623+ foreach my $item (@$value ) {
624+ if (blessed($item ) && $item -> isa(' Bugzilla::User' )) {
625+ push (@new_values , $item -> login);
626+ }
627+ else {
628+ push (@new_values , $item );
629+ }
630+ }
631+ $value = join (' , ' , @new_values );
623632 }
624633 elsif (blessed($value ) && $value -> isa(' Bugzilla::User' )) {
625634 $value = $value -> login;
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ BEGIN {
3636 *Bugzilla::Component::reviewers_objs = \&_component_reviewers_objs;
3737 *Bugzilla::Bug::mentors = \&_bug_mentors;
3838 *Bugzilla::Bug::bug_mentors = \&_bug_mentors;
39+ *Bugzilla::Bug::bug_mentor = \&_bug_mentors;
3940 *Bugzilla::Bug::is_mentor = \&_bug_is_mentor;
4041 *Bugzilla::Bug::set_bug_mentors = \&_bug_set_bug_mentors;
4142 *Bugzilla::User::review_count = \&_user_review_count;
@@ -920,10 +921,15 @@ sub install_update_db {
920921 my $field = Bugzilla::Field-> new({ name => ' bug_mentor' });
921922 if (!$field ) {
922923 Bugzilla::Field-> create({
923- name => ' bug_mentor' ,
924- description => ' Mentor'
924+ name => ' bug_mentor' ,
925+ description => ' Mentor' ,
926+ mailhead => 1
925927 });
926928 }
929+ elsif (!$field -> in_new_bugmail) {
930+ $field -> set_in_new_bugmail(1);
931+ $field -> update();
932+ }
927933}
928934
929935sub install_filesystem {
You can’t perform that action at this time.
0 commit comments