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:
commit
efd5924bdc
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue