From: Marcel Werk Date: Sun, 2 Jun 2013 15:14:55 +0000 (+0200) Subject: Fixed search for group members X-Git-Tag: 2.0.0_Beta_3~43 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ce0e3716db181580dbca3bbe6217e0d98829827;p=GitHub%2FWoltLab%2FWCF.git Fixed search for group members --- diff --git a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php index 10ac784306..2541c16c27 100755 --- a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php @@ -167,6 +167,28 @@ class UserSearchForm extends UserOptionListForm { */ public $maxResults = 0; + /** + * @see wcf\page\IPage::readParameters() + */ + public function readParameters() { + parent::readParameters(); + + // search user from passed groupID by group-view + if (isset($_GET['groupID'])) { + $this->groupIDs[] = intval($_GET['groupID']); + + // do search + try { + $this->validate(); + $this->save(); + } + catch (UserInputException $e) { + $this->errorField = $e->getField(); + $this->errorType = $e->getType(); + } + } + } + /** * @see wcf\form\IForm::readFormParameters() */