diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 787e531..4bd91e0 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -157,7 +157,7 @@ final class ApiController extends Controller $this->createModel($request->header->account, $contactElement, ContactElementMapper::class, 'supplier-contactElement', $request->getOrigin()); $this->createModelRelation( $request->header->account, - (int) $request->getData('supplier'), + (int) $request->getData('account'), $contactElement->getId(), SupplierMapper::class, 'contactElements', '', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Contact Element', 'Contact element successfully created', $contactElement); diff --git a/tests/Models/NullSupplier.php b/tests/Models/NullSupplier.php deleted file mode 100644 index a2270d4..0000000 --- a/tests/Models/NullSupplier.php +++ /dev/null @@ -1,42 +0,0 @@ -getId()); - } -} diff --git a/tests/Models/NullSupplierAttribute.php b/tests/Models/NullSupplierAttribute.php deleted file mode 100644 index f3219f7..0000000 --- a/tests/Models/NullSupplierAttribute.php +++ /dev/null @@ -1,42 +0,0 @@ -getId()); - } -} diff --git a/tests/Models/NullSupplierAttributeType.php b/tests/Models/NullSupplierAttributeType.php deleted file mode 100644 index 441cccd..0000000 --- a/tests/Models/NullSupplierAttributeType.php +++ /dev/null @@ -1,42 +0,0 @@ -getId()); - } -} diff --git a/tests/Models/NullSupplierAttributeTypeL11n.php b/tests/Models/NullSupplierAttributeTypeL11n.php deleted file mode 100644 index c94ce63..0000000 --- a/tests/Models/NullSupplierAttributeTypeL11n.php +++ /dev/null @@ -1,42 +0,0 @@ -getId()); - } -} diff --git a/tests/Models/NullSupplierAttributeValue.php b/tests/Models/NullSupplierAttributeValue.php deleted file mode 100644 index 56ab204..0000000 --- a/tests/Models/NullSupplierAttributeValue.php +++ /dev/null @@ -1,42 +0,0 @@ -getId()); - } -}