From: Max Kanat-Alexander Date: Mon, 14 Feb 2011 07:43:51 +0000 (-0800) Subject: Bug 633422: Fix the documentation for User.get's include_disabled parameter X-Git-Tag: bugzilla-3.6.5~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b420b10ff6a95fb922311d70882f1ff6231cb796;p=thirdparty%2Fbugzilla.git Bug 633422: Fix the documentation for User.get's include_disabled parameter and make User.get check that its required parameters are passed. r=LpSolit, a=mkanat --- diff --git a/Bugzilla/WebService/User.pm b/Bugzilla/WebService/User.pm index caa02c4fac..7b64ee13f4 100644 --- a/Bugzilla/WebService/User.pm +++ b/Bugzilla/WebService/User.pm @@ -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};