diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-11 12:08:37 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-06 11:08:18 +0100 |
commit | 184d165f61da4cdf1626ce05a8ed6b5a0abed09f (patch) | |
tree | a58774cff6b9853093e0b8da0a35ef6708292207 | |
parent | 59f4001bc48fc7bef1dcc58175a06737ede02fc8 (diff) | |
download | bugzilla-184d165f61da4cdf1626ce05a8ed6b5a0abed09f.tar.gz bugzilla-184d165f61da4cdf1626ce05a8ed6b5a0abed09f.tar.xz |
Migrate: Allow to change read values in after_read()
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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 c4c5eee93..036127602 100644 --- a/Bugzilla/Migrate.pm +++ b/Bugzilla/Migrate.pm @@ -156,22 +156,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) { |