From 1c0dc68acb296ebe1b2fb4fa37d799f1f3e4197d Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Thu, 16 Jul 2015 00:16:23 +0200 Subject: [PATCH] * [FIX] Fixed delete account issue --- ajax/ajax_accountSave.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ajax/ajax_accountSave.php b/ajax/ajax_accountSave.php index cd1ad643..177e3ccb 100644 --- a/ajax/ajax_accountSave.php +++ b/ajax/ajax_accountSave.php @@ -53,7 +53,7 @@ $accountPassword = SP\Request::analyze('password', '', false, false, false); $accountPasswordV = SP\Request::analyze('password2', '', false, false, false); $categoryId = SP\Request::analyze('categoryId', 0); $accountOtherGroups = SP\Request::analyze('othergroups'); -$accountOtherUsers = SP\Request::analyze( 'otherusers'); +$accountOtherUsers = SP\Request::analyze('otherusers'); $accountNotes = SP\Request::analyze('notice'); $accountUrl = SP\Request::analyze('url'); $accountGroupEditEnabled = SP\Request::analyze('geditenabled', 0, false, 1); @@ -188,7 +188,6 @@ switch ($actionId) { $account->setAccountOtherGroupEdit($accountGroupEditEnabled); - // Comprobar si han habido cambios if ($accountChangesHash == $account->calcChangesHash()) { SP\Common::printJSON(_('Sin cambios'), 0); @@ -206,7 +205,7 @@ switch ($actionId) { // Eliminar cuenta if ($account->deleteAccount()) { - SP\Common::printJSON(_('Cuenta eliminada'), 0, "doAction('accsearch');"); + SP\Common::printJSON(_('Cuenta eliminada'), 0, "doAction('" . \SP\Controller\ActionsInterface::ACTION_ACC_SEARCH . "');"); } SP\Common::printJSON(_('Error al eliminar la cuenta')); break;