summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-05-11 14:11:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-12-06 11:08:18 +0100
commitcff72f3747c6809a2faa5d1bfd2edb21accd8421 (patch)
treedfd552411699a07d4b7e32c809385cb61b4681bd
parent2cc29cb7ae652e2f3cd85c421fe068b210cadeab (diff)
downloadbugzilla-cff72f3747c6809a2faa5d1bfd2edb21accd8421.tar.gz
bugzilla-cff72f3747c6809a2faa5d1bfd2edb21accd8421.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 a4fe5404a..aa3346bb6 100644
--- a/Bugzilla/Migrate/Flyspray.pm
+++ b/Bugzilla/Migrate/Flyspray.pm
@@ -362,6 +362,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