diff options
author | Sunil Joshi <joshi_sunil@in.com> | 2013-09-26 04:04:59 +0200 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2013-09-26 04:04:59 +0200 |
commit | 646aa223346440a159effc37b0e6070832b1989a (patch) | |
tree | c13d4e15231869126bc3cabb179b006457883017 /Bugzilla | |
parent | 2fe007151dd2d7caec031cd1fca617eac47f2549 (diff) | |
download | bugzilla-646aa223346440a159effc37b0e6070832b1989a.tar.gz bugzilla-646aa223346440a159effc37b0e6070832b1989a.tar.xz |
Bug 714523 - editversions.cgi should use ->set_all
r=simon, a=simon
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Version.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Bugzilla/Version.pm b/Bugzilla/Version.pm index 920853ecd..317b73d95 100644 --- a/Bugzilla/Version.pm +++ b/Bugzilla/Version.pm @@ -169,8 +169,8 @@ sub product { # Validators ################################ -sub set_name { $_[0]->set('value', $_[1]); } -sub set_is_active { $_[0]->set('isactive', $_[1]); } +sub set_value { $_[0]->set('value', $_[1]); } +sub set_isactive { $_[0]->set('isactive', $_[1]); } sub _check_value { my ($invocant, $name, undef, $params) = @_; @@ -219,7 +219,7 @@ Bugzilla::Version - Bugzilla product version class. my $version = Bugzilla::Version->create( { value => $name, product => $product_obj }); - $version->set_name($new_name); + $version->set_value($new_name); $version->update(); $version->remove_from_db; @@ -255,9 +255,9 @@ below. =item DEFAULT_VERSION -=item set_is_active +=item set_isactive -=item set_name +=item set_value =item product_id |