mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-08 16:28:42 +00:00
fix tests
This commit is contained in:
parent
1c72898d44
commit
edb6619eb5
|
|
@ -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\ItemManagement\Models\ItemAttributeValue $itemAttributeValue */
|
||||
$itemAttributeValue = ItemAttributeValueMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
||||
$this->deleteModel($request->header->account, $itemAttributeValue, ItemAttributeValueMapper::class, 'item_attribute_value', $request->getOrigin());
|
||||
$this->createStandardDeleteResponse($request, $response, $itemAttributeValue);
|
||||
// /** @var \Modules\ItemManagement\Models\ItemAttributeValue $itemAttributeValue */
|
||||
// $itemAttributeValue = ItemAttributeValueMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
||||
// $this->deleteModel($request->header->account, $itemAttributeValue, ItemAttributeValueMapper::class, 'item_attribute_value', $request->getOrigin());
|
||||
// $this->createStandardDeleteResponse($request, $response, $itemAttributeValue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user