diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-11 14:11:24 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-06 11:08:18 +0100 |
commit | cff72f3747c6809a2faa5d1bfd2edb21accd8421 (patch) | |
tree | dfd552411699a07d4b7e32c809385cb61b4681bd | |
parent | 2cc29cb7ae652e2f3cd85c421fe068b210cadeab (diff) | |
download | bugzilla-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.pm | 10 |
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 |