diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-11 12:08:37 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-05-11 12:11:10 +0200 |
commit | a11a73b100c0ae5602a0330744d43b2064c2dd09 (patch) | |
tree | e527bf834d99d15b7865743aea5920b4ba73e695 /Bugzilla | |
parent | bc9729d82cbbba4533eb54a04ec0ad8a7b0fa7ad (diff) | |
download | bugzilla-a11a73b100c0ae5602a0330744d43b2064c2dd09.tar.gz bugzilla-a11a73b100c0ae5602a0330744d43b2064c2dd09.tar.xz |
Migrate: Allow to change read values in after_read()
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Migrate.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Bugzilla/Migrate.pm b/Bugzilla/Migrate.pm index 427aa15e6..90623ff67 100644 --- a/Bugzilla/Migrate.pm +++ b/Bugzilla/Migrate.pm @@ -155,22 +155,22 @@ sub do_migration { $dbh->bz_start_transaction(); # Read Other Database - my $users = $self->users; - my $products = $self->products; - my $bugs = $self->bugs; + $self->users; + $self->products; + $self->bugs; $self->after_read(); - $self->translate_all_bugs($bugs); + $self->translate_all_bugs($self->bugs); Bugzilla->set_user(Bugzilla::User->super_user); # Insert into Bugzilla $self->before_insert(); - $self->insert_users($users); - $self->insert_products($products); + $self->insert_users($self->users()); + $self->insert_products($self->products()); $self->create_custom_fields(); - $self->create_legal_values($bugs); - $self->insert_bugs($bugs); + $self->create_legal_values($self->bugs()); + $self->insert_bugs($self->bugs()); $self->after_insert(); if ($self->dry_run) { $dbh->bz_rollback_transaction(); |