Fixed UsersMassProcessingForm::checkOption()
authorMatthias Schmidt <gravatronics@live.com>
Wed, 20 Jul 2011 16:06:28 +0000 (18:06 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 20 Jul 2011 16:06:28 +0000 (18:06 +0200)
Pay attention that the whole form needs still to be converted to the new
 API like $this->options instead of $this->activeOptions.

wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php

index 984edf1b197243ca58455c16d26eeea0879d79da..c9755a008d2375cf4e1addb94563a8950e789f78 100755 (executable)
@@ -393,10 +393,9 @@ class UsersMassProcessingForm extends UserOptionListForm {
        }
        
        /**
-        * @see wcf\acp\form\DynamicOptionListForm::checkOption()
+        * @see wcf\acp\form\AbstractOptionListForm::checkOption()
         */
-       protected function checkOption($optionName) {
-               $option = $this->cachedOptions[$optionName];
-               return ($option['searchable'] == 1 && !$option['disabled'] && ($option['visible'] == 3 || $option['visible'] < 2));
+       protected static function checkOption(Option $option) {
+               return ($option->searchable == 1 && !$option->disabled && ($option->visible == 3 || $option->visible < 2));
        }
 }