Skip to content
Draft
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion front/contact_supplier.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

use Glpi\Event;
use Glpi\Exception\Http\BadRequestHttpException;
use Glpi\Exception\ItemLinkException;

/**
* @since 0.84
Expand All @@ -45,7 +46,11 @@
Session::checkCentralAccess();
$contactsupplier = new Contact_Supplier();
if (isset($_POST["add"])) {
$contactsupplier->check(-1, CREATE, $_POST);
try {
$contactsupplier->check(-1, CREATE, $_POST);
} catch (ItemLinkException $e) {
Html::back();
}

if (
isset($_POST["contacts_id"]) && ($_POST["contacts_id"] > 0)
Expand Down
Loading