Merge pull request #17315 from fr69400/develop

Update supplier_proposal\contact.php
This commit is contained in:
Laurent Destailleur 2021-04-19 21:00:45 +02:00 committed by GitHub
commit b67e6e8ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');
}
}