Merge pull request #14981 from aspangaro/11p45

FIX Loan - Return on list when you cancel create form or delete a loan
This commit is contained in:
Laurent Destailleur 2020-10-11 13:33:49 +02:00 committed by GitHub
commit efd5924bdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ if (empty($reshook))
if ($result > 0) if ($result > 0)
{ {
setEventMessages($langs->trans('LoanDeleted'), null, 'mesgs'); setEventMessages($langs->trans('LoanDeleted'), null, 'mesgs');
header("Location: index.php"); header("Location: list.php");
exit; exit;
} }
else else
@ -156,7 +156,7 @@ if (empty($reshook))
} }
else else
{ {
header("Location: index.php"); header("Location: list.php");
exit(); exit();
} }
} }