From 231a86683849769ea79d1bccb014f68cdbc13db2 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Sat, 10 Oct 2020 07:38:29 +0200 Subject: [PATCH] FIX Loan - Return on list when you cancel create form or delete a loan --- htdocs/loan/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/loan/card.php b/htdocs/loan/card.php index 3e96a33c931..2c46823afb0 100644 --- a/htdocs/loan/card.php +++ b/htdocs/loan/card.php @@ -83,7 +83,7 @@ if (empty($reshook)) if ($result > 0) { setEventMessages($langs->trans('LoanDeleted'), null, 'mesgs'); - header("Location: index.php"); + header("Location: list.php"); exit; } else @@ -156,7 +156,7 @@ if (empty($reshook)) } else { - header("Location: index.php"); + header("Location: list.php"); exit(); } }