Merge pull request #10219 from simnandez/8.0
FIX: #10218 Bad redirection after deleting a user or group
This commit is contained in:
commit
603656c7de
@ -1,6 +1,6 @@
|
|||||||
# Dolibarr language file - Source file is en_US - banks
|
# Dolibarr language file - Source file is en_US - banks
|
||||||
Bank=Banco
|
Bank=Banco
|
||||||
MenuBankCash=Bank | Cash
|
MenuBankCash=Bancos | Cajas
|
||||||
MenuVariousPayment=Pagos varios
|
MenuVariousPayment=Pagos varios
|
||||||
MenuNewVariousPayment=Nuevo pago varios
|
MenuNewVariousPayment=Nuevo pago varios
|
||||||
BankName=Nombre del banco
|
BankName=Nombre del banco
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
* Copyright (C) 2005-2018 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2018 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2005 Lionel Cousteix <etm_ltd@tiscali.co.uk>
|
* Copyright (C) 2005 Lionel Cousteix <etm_ltd@tiscali.co.uk>
|
||||||
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
||||||
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012-2018 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
|
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
|
||||||
* Copyright (C) 2013-2016 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
|
* Copyright (C) 2013-2016 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
|
||||||
* Copyright (C) 2015-2017 Jean-François Ferry <jfefe@aternatik.fr>
|
* Copyright (C) 2015-2017 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
@ -152,7 +152,7 @@ if (empty($reshook)) {
|
|||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
setEventMessages($langs->trans("ErrorUserCannotBeDelete"), null, 'errors');
|
setEventMessages($langs->trans("ErrorUserCannotBeDelete"), null, 'errors');
|
||||||
} else {
|
} else {
|
||||||
header("Location: index.php?restore_lastsearch_values=1");
|
header("Location: ".DOL_URL_ROOT."/user/list.php?restore_lastsearch_values=1");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
* Copyright (C) 2005-2017 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2017 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
||||||
* Copyright (C) 2012 Florian Henry <florian.henry@open-concept.pro>
|
* Copyright (C) 2012 Florian Henry <florian.henry@open-concept.pro>
|
||||||
|
* Copyright (C) 2018 Juanjo Menent <jmenent@2byte.es>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -110,7 +111,7 @@ if (empty($reshook)) {
|
|||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
$object->delete();
|
$object->delete();
|
||||||
header("Location: index.php?restore_lastsearch_values=1");
|
header("Location: ".DOL_URL_ROOT."/user/group/list.php?restore_lastsearch_values=1");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user