From 00ce5cf8b0c14d0b49ad7a3c3408df3ea207db9b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 21 Dec 2013 20:31:00 +0100 Subject: [PATCH] Fixed user enable/disable through ACP --- wcfsetup/install/files/acp/js/WCF.ACP.js | 4 +--- wcfsetup/install/files/lib/data/user/UserAction.class.php | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index 4d20332b15..0dae783e29 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -2096,9 +2096,7 @@ WCF.ACP.User.EnableHandler = { }); var $notification = new WCF.System.Notification(); - $notification.show(); - - WCF.Clipboard.reload(); + $notification.show(function() { window.location.reload(); }); } }; diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index b7b703e1ba..8db5ef32c1 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -471,6 +471,8 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio 'addDefaultGroups' => false )); $action->executeAction(); + + $this->unmarkItems(); } /** @@ -492,5 +494,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio 'addDefaultGroups' => false )); $action->executeAction(); + + $this->unmarkItems(); } } -- 2.20.1