summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-05-11 14:11:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-05-11 14:11:24 +0200
commite9ab86a49d81c6194dc62db3236cdf4d3380b3ee (patch)
tree5255b2301c89bd2d05cc28da7289949634197dd0
parent1c38e8a3d8d4b70aadd96f4d34fe2e372a7820b6 (diff)
downloadbugzilla-e9ab86a49d81c6194dc62db3236cdf4d3380b3ee.tar.gz
bugzilla-e9ab86a49d81c6194dc62db3236cdf4d3380b3ee.tar.xz
Flyspray: Add CC list to bugs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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("