Commit c0030141 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #17268 TIME 0:05 fix error messages

parent 1f189e6f
......@@ -333,17 +333,17 @@ class ConfigurationController
$attachmentType = AttachmentTypeModel::getById(['select' => ['type_id'], 'id' => $body['metadata']['attachmentTypeId']]);
if (empty($attachmentType)) {
return $response->withStatus(400)->withJson(['errors' => 'Basket not found', 'lang' => 'attachmentTypeDoesNotExist']);
return $response->withStatus(400)->withJson(['errors' => 'Attachment type not found', 'lang' => 'attachmentTypeDoesNotExist']);
}
$indexingModel = IndexingModelModel::getById(['select' => [1], 'id' => $body['metadata']['indexingModelId']]);
if (empty($indexingModel)) {
return $response->withStatus(400)->withJson(['errors' => 'Basket not found', 'lang' => 'indexingModelDoesNotExist']);
return $response->withStatus(400)->withJson(['errors' => 'Indexing model not found', 'lang' => 'indexingModelDoesNotExist']);
}
$status = StatusModel::getByIdentifier(['select' => ['id'], 'identifier' => $body['metadata']['statusId']]);
if (empty($status)) {
return $response->withStatus(400)->withJson(['errors' => 'Basket not found', 'lang' => 'statusDoesNotExist']);
return $response->withStatus(400)->withJson(['errors' => 'Status not found', 'lang' => 'statusDoesNotExist']);
}
$doctype = DoctypeModel::getById(['select' => [1], 'id' => $body['metadata']['typeId']]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment