From 80130158d4f4baa47cf1212cf28da1dc84b9d096 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Fri, 14 May 2010 07:20:05 -0700 Subject: Bug 556731 - Make Bugzilla::Milestone, Bugzilla::Version, and Bugzilla::Component use VALIDATOR_DEPENDENCIES instead of UPDATE_VALIDATORS r=LpSolit, a=LpSolit --- Bugzilla/Migrate.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Bugzilla/Migrate.pm') diff --git a/Bugzilla/Migrate.pm b/Bugzilla/Migrate.pm index 6c353357d..2ae638e4f 100644 --- a/Bugzilla/Migrate.pm +++ b/Bugzilla/Migrate.pm @@ -654,7 +654,7 @@ sub create_legal_values { next if new Bugzilla::Version({ product => $prod_obj, name => $version }); my $created = Bugzilla::Version->create({ product => $prod_obj, - name => $version }); + value => $version }); my $field = $self->bug_fields->{version}; print get_text('migrate_value_created', { product => $prod_obj, field => $field, @@ -663,8 +663,8 @@ sub create_legal_values { foreach my $milestone (keys %{ $product_values{$product}->{target_milestone} }) { next if new Bugzilla::Milestone({ product => $prod_obj, name => $milestone }); - my $created = Bugzilla::Milestone->create({ product => $prod_obj, - name => $milestone }); + my $created = Bugzilla::Milestone->create( + { product => $prod_obj, value => $milestone }); my $field = $self->bug_fields->{target_milestone}; print get_text('migrate_value_created', { product => $prod_obj, field => $field, -- cgit v1.2.3-24-g4f1b