]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 633422: Fix the documentation for User.get's include_disabled parameter
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 14 Feb 2011 07:44:02 +0000 (23:44 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 14 Feb 2011 07:44:02 +0000 (23:44 -0800)
and make User.get check that its required parameters are passed.
r=LpSolit, a=mkanat

Bugzilla/WebService/User.pm

index 790a9da7c2a8f2393dc2db4cd66387fe5bc74078..5ff6631ac2731d691ee937c83b9d7cb6a2545496 100644 (file)
@@ -133,6 +133,11 @@ sub create {
 sub get {
     my ($self, $params) = validate(@_, 'names', 'ids');
 
+    defined($params->{names}) || defined($params->{ids})
+        || defined($params->{match})
+        || ThrowCodeError('params_required', 
+               { function => 'User.get', params => ['ids', 'names', 'match'] });
+
     my @user_objects;
     @user_objects = map { Bugzilla::User->check($_) } @{ $params->{names} }
                     if $params->{names};