summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Migrate/Flyspray.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm
index 7475d1aae..9598e01f4 100644
--- a/Bugzilla/Migrate/Flyspray.pm
+++ b/Bugzilla/Migrate/Flyspray.pm
@@ -337,6 +337,16 @@ sub _read_bugs {
};
}
+ # CC/bug watchers
+ my $cc_sth = $self->{dbh}->prepare_cached("
+ SELECT user_id
+ FROM $fsdb.${fsprfx}notifications WHERE task_id = ?");
+ $cc_sth->execute($row->{task_id});
+ while (my $row = $cc_sth->fetchrow_hashref()) {
+ push @{$bug->{cc}}, $self->_get_username($row->{user_id});
+ }
+
+
my $comments = {};
# fetch comments
my $comments_sth = $self->{dbh}->prepare_cached("