diff options
author | Byron Jones <bjones@mozilla.com> | 2013-08-01 08:15:20 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-08-01 08:15:20 +0200 |
commit | 612dd017fd0901d653fb8145385079a578b74caa (patch) | |
tree | 8060c14e6544f2e3981281513f56be4b1fa9e887 /contrib/reorg-tools/movecomponent.pl | |
parent | e985249f971bdeebb498e6f8ba6cc5ff4d160d97 (diff) | |
download | bugzilla-612dd017fd0901d653fb8145385079a578b74caa.tar.gz bugzilla-612dd017fd0901d653fb8145385079a578b74caa.tar.xz |
Bug 859550: Create a user profile page for bugzilla users
Diffstat (limited to 'contrib/reorg-tools/movecomponent.pl')
-rwxr-xr-x | contrib/reorg-tools/movecomponent.pl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/reorg-tools/movecomponent.pl b/contrib/reorg-tools/movecomponent.pl index 8f8bc0abc..702dbc6f0 100755 --- a/contrib/reorg-tools/movecomponent.pl +++ b/contrib/reorg-tools/movecomponent.pl @@ -35,6 +35,7 @@ use lib qw(. lib); use Bugzilla; use Bugzilla::Constants; +use Bugzilla::Hook; use Bugzilla::Util; sub usage() { @@ -152,6 +153,10 @@ getc(); print "Moving '$component' from '$oldproduct' to '$newproduct'...\n\n"; $dbh->bz_start_transaction() if $doit; +my $ra_ids = $dbh->selectcol_arrayref( + "SELECT bug_id FROM bugs WHERE product_id=? AND component_id=?", + undef, $oldprodid, $compid); + # Bugs table $dbh->do("UPDATE bugs SET product_id = ? WHERE component_id = ?", undef, @@ -187,7 +192,5 @@ $dbh->do("INSERT INTO bugs_activity(bug_id, who, bug_when, fieldid, removed, undef, ($userid, $fieldid, $oldproduct, $newproduct, $compid)); +Bugzilla::Hook::process('reorg_move_bugs', { bug_ids => $ra_ids } ) if $doit; $dbh->bz_commit_transaction() if $doit; - -exit(0); - |