Update contact.php

This commit is contained in:
fr69400 2021-04-19 13:09:53 +02:00
parent 61df76dd9a
commit e678091b12

View File

@ -78,7 +78,7 @@ if ($action == 'addcontact' && $permissiontoedit) {
if ($object->fetch($id)) {
$result = $object->swapContactStatus(GETPOST('ligne', 'int'));
} else {
dol_print_error($db);
setEventMessages($object->error, $object->errors, 'errors');
}
} elseif ($action == 'deletecontact' && $permissiontoedit) {
// Deleting a contact
@ -89,7 +89,7 @@ if ($action == 'addcontact' && $permissiontoedit) {
header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
exit;
} else {
dol_print_error($db);
setEventMessages($object->error, $object->errors, 'errors');
}
}