Fix delete of member
This commit is contained in:
parent
bb406f66be
commit
5f3e231d13
@ -620,7 +620,8 @@ if (empty($reshook)) {
|
|||||||
if ($user->hasRight('adherent', 'supprimer') && $action == 'confirm_delete' && $confirm == 'yes') {
|
if ($user->hasRight('adherent', 'supprimer') && $action == 'confirm_delete' && $confirm == 'yes') {
|
||||||
$result = $object->delete($id, $user);
|
$result = $object->delete($id, $user);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
if (!empty($backtopage)) {
|
setEventMessages($langs->trans("RecordDeleted"), null, 'errors');
|
||||||
|
if (!empty($backtopage) && !preg_match('/'.preg_quote($_SERVER["PHP_SELF"], '/').'/', $backtopage)) {
|
||||||
header("Location: ".$backtopage);
|
header("Location: ".$backtopage);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -4999,7 +4999,7 @@ class Form
|
|||||||
{
|
{
|
||||||
global $langs, $conf;
|
global $langs, $conf;
|
||||||
|
|
||||||
$more = '<!-- formconfirm before calling page='.dol_escape_htmltag($page).' -->';
|
$more = '<!-- formconfirm - before call, page='.dol_escape_htmltag($page).' -->';
|
||||||
$formconfirm = '';
|
$formconfirm = '';
|
||||||
$inputok = array();
|
$inputok = array();
|
||||||
$inputko = array();
|
$inputko = array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user