diff options
author | mkanat%bugzilla.org <> | 2008-07-01 15:19:20 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-07-01 15:19:20 +0200 |
commit | 6cf3c88ecb5077a9c6f3941fbae139f3e6937430 (patch) | |
tree | 7b4aed4ab66c2fdfbce25c8b946c71d137133deb /Bugzilla/WebService/Product.pm | |
parent | 7b6d4bdc2c4c9368479150bb333659b00cece1d5 (diff) | |
download | bugzilla-6cf3c88ecb5077a9c6f3941fbae139f3e6937430.tar.gz bugzilla-6cf3c88ecb5077a9c6f3941fbae139f3e6937430.tar.xz |
Bug 437617: Make "type" a method of Bugzilla::WebService
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Product.pm')
-rwxr-xr-x | Bugzilla/WebService/Product.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/WebService/Product.pm b/Bugzilla/WebService/Product.pm index 995e0adc0..0f15a7e30 100755 --- a/Bugzilla/WebService/Product.pm +++ b/Bugzilla/WebService/Product.pm @@ -21,7 +21,6 @@ use strict; use base qw(Bugzilla::WebService); use Bugzilla::Product; use Bugzilla::User; -import SOAP::Data qw(type); ################################################## # Add aliases here for method name compatibility # @@ -63,9 +62,9 @@ sub get { my @products = map {{ internals => $_, - id => type('int')->value($_->id), - name => type('string')->value($_->name), - description => type('string')->value($_->description), + id => $self->type('int', $_->id), + name => $self->type('string', $_->name), + description => $self->type('string', $_->description), } } @requested_accessible; |