Error management
This commit is contained in:
parent
6190dddac9
commit
c07d5045d1
@ -374,7 +374,10 @@ else if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->fich
|
||||
{
|
||||
$object->fetch($id);
|
||||
$object->fetch_thirdparty();
|
||||
$object->delete($user);
|
||||
$result=$object->delete($user);
|
||||
if ($result<0) {
|
||||
setEventMessage($object->error,'errors');
|
||||
}
|
||||
|
||||
header('Location: '.DOL_URL_ROOT.'/fichinter/list.php?leftmenu=ficheinter');
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user