* Shows the user bulk processing form.
*
* @author Marcel Werk
- * @copyright 2001-2014 WoltLab GmbH
+ * @copyright 2001-2015 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage acp.form
*/
public $activeOptions = array();
+ /**
+ * @see \wcf\acp\form\AbstractOptionListForm::initOptionHandler()
+ */
+ protected function initOptionHandler() {
+ $this->optionHandler->enableSearchMode();
+
+ parent::initOptionHandler();
+ }
+
/**
* @see \wcf\form\IForm::readFormParameters()
*/
$this->conditions->add('user_table.activationCode <> ?', array(0));
}
- // dynamic fields
- foreach ($this->activeOptions as $name => $option) {
- $value = isset($this->values[$option['optionName']]) ? $this->values[$option['optionName']] : null;
- $this->getTypeObject($option['optionType'])->getCondition($this->conditions, $option, $value);
+ foreach ($this->optionHandler->getCategoryOptions('profile') as $option) {
+ $option = $option['object'];
+
+ $value = isset($this->optionHandler->optionValues[$option->optionName]) ? $this->optionHandler->optionValues[$option->optionName] : null;
+ $this->optionHandler->getTypeObject($option->optionType)->getCondition($this->conditions, $option, $value);
}
// call buildConditions event
$this->availableGroups = $this->getAvailableGroups();
- foreach ($this->activeOptions as $name => $option) {
- if (isset($this->values[$name])) {
- $this->activeOptions[$name]['optionValue'] = $this->values[$name];
- }
- }
-
$this->options = $this->optionHandler->getCategoryOptions('profile');
}