From 5c506993e041baa4a96437552391c5481a6de6db Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 26 Jan 2012 17:16:39 +0100 Subject: [PATCH] Fixed mass processing form --- .../acp/templates/usersMassProcessing.tpl | 185 ++++++++---------- .../form/UsersMassProcessingForm.class.php | 11 +- 2 files changed, 91 insertions(+), 105 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl b/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl index 80f4666304..d6c90d1e00 100644 --- a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl +++ b/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl @@ -1,67 +1,62 @@ {include file='header'} - - @@ -96,12 +91,6 @@
-
@@ -151,33 +140,31 @@ {event name='fieldsets'} {hascontent} - - - - - {if $options|count} - - {/if} - - {event name='tabMenuContent'} +
+ + + {if $options|count} + + {/if} + + {event name='tabMenuContent'} +
{/hascontent} @@ -195,17 +182,17 @@
{if $__wcf->session->getPermission('admin.user.canMailUser')} - - + + {/if} {if $__wcf->session->getPermission('admin.user.canEditUser')} - + {/if} {if $__wcf->session->getPermission('admin.user.canDeleteUser')} - + {/if} - {if $additionalActions|isset}{@$additionalActions}{/if} + {event name='additionalActions'} {if $errorField == 'action'} @@ -281,8 +268,8 @@ {lang}wcf.acp.user.exportEmailAddress.fileType{/lang}
-
-
+
+
diff --git a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php b/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php index eedbb91bd3..0ad28dd7fe 100644 --- a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php @@ -345,7 +345,7 @@ class UsersMassProcessingForm extends UserOptionListForm { } } - $this->options = $this->getCategoryOptions('profile'); + $this->options = $this->optionHandler->getCategoryOptions('profile'); } /** @@ -388,9 +388,6 @@ class UsersMassProcessingForm extends UserOptionListForm { // check master password WCFACP::checkMasterPassword(); - // get user options and categories from cache - $this->readCache(); - // show form parent::show(); } @@ -398,14 +395,16 @@ class UsersMassProcessingForm extends UserOptionListForm { /** * @see wcf\system\option\ISearchableOptionType::getSearchFormElement() */ + /* protected function getFormElement($type, &$optionData) { return $this->getTypeObject($type)->getSearchFormElement($optionData); - } + }*/ /** * @see wcf\acp\form\AbstractOptionListForm::checkOption() */ + /* protected static function checkOption(Option $option) { return ($option->searchable == 1 && !$option->disabled && ($option->visible == 3 || $option->visible < 2)); - } + }*/ } -- 2.20.1