mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-11 06:18:42 +00:00
fix tests
This commit is contained in:
parent
e94ef027e5
commit
5edbaa8788
|
|
@ -451,17 +451,17 @@ final class ApiAttributeController extends Controller
|
||||||
// @todo: I don't think values can be deleted? Only Attributes
|
// @todo: I don't think values can be deleted? Only Attributes
|
||||||
// However, It should be possible to remove UNUSED default values
|
// However, It should be possible to remove UNUSED default values
|
||||||
// either here or other function?
|
// either here or other function?
|
||||||
if (!empty($val = $this->validateAttributeValueDelete($request))) {
|
// if (!empty($val = $this->validateAttributeValueDelete($request))) {
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
// $response->header->status = RequestStatusCode::R_400;
|
||||||
$this->createInvalidDeleteResponse($request, $response, $val);
|
// $this->createInvalidDeleteResponse($request, $response, $val);
|
||||||
|
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
/** @var \Modules\ClientManagement\Models\ClientAttributeValue $clientAttributeValue */
|
// /** @var \Modules\ClientManagement\Models\ClientAttributeValue $clientAttributeValue */
|
||||||
$clientAttributeValue = ClientAttributeValueMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
// $clientAttributeValue = ClientAttributeValueMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
||||||
$this->deleteModel($request->header->account, $clientAttributeValue, ClientAttributeValueMapper::class, 'client_attribute_value', $request->getOrigin());
|
// $this->deleteModel($request->header->account, $clientAttributeValue, ClientAttributeValueMapper::class, 'client_attribute_value', $request->getOrigin());
|
||||||
$this->createStandardDeleteResponse($request, $response, $clientAttributeValue);
|
// $this->createStandardDeleteResponse($request, $response, $clientAttributeValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user