From 5edbaa87881e5a446d9781cfe1118c2ca30f36bc Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 24 Sep 2023 02:48:07 +0000 Subject: [PATCH] fix tests --- Controller/ApiAttributeController.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index 26aeea6..2b265bd 100644 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -451,17 +451,17 @@ final class ApiAttributeController extends Controller // @todo: I don't think values can be deleted? Only Attributes // However, It should be possible to remove UNUSED default values // either here or other function? - if (!empty($val = $this->validateAttributeValueDelete($request))) { - $response->header->status = RequestStatusCode::R_400; - $this->createInvalidDeleteResponse($request, $response, $val); + // if (!empty($val = $this->validateAttributeValueDelete($request))) { + // $response->header->status = RequestStatusCode::R_400; + // $this->createInvalidDeleteResponse($request, $response, $val); - return; - } + // return; + // } - /** @var \Modules\ClientManagement\Models\ClientAttributeValue $clientAttributeValue */ - $clientAttributeValue = ClientAttributeValueMapper::get()->where('id', (int) $request->getData('id'))->execute(); - $this->deleteModel($request->header->account, $clientAttributeValue, ClientAttributeValueMapper::class, 'client_attribute_value', $request->getOrigin()); - $this->createStandardDeleteResponse($request, $response, $clientAttributeValue); + // /** @var \Modules\ClientManagement\Models\ClientAttributeValue $clientAttributeValue */ + // $clientAttributeValue = ClientAttributeValueMapper::get()->where('id', (int) $request->getData('id'))->execute(); + // $this->deleteModel($request->header->account, $clientAttributeValue, ClientAttributeValueMapper::class, 'client_attribute_value', $request->getOrigin()); + // $this->createStandardDeleteResponse($request, $response, $clientAttributeValue); } /**