Merge pull request #17315 from fr69400/develop
Update supplier_proposal\contact.php
This commit is contained in:
commit
b67e6e8ff7
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user