Skip to content
Snippets Groups Projects
Commit 61d4774f authored by Mathieu's avatar Mathieu
Browse files

FEAT #18862 TIME 2:00 add back check

parent fc7b5d55
No related branches found
No related tags found
No related merge requests found
......@@ -1027,6 +1027,8 @@ class AttachmentController
return ['errors' => 'Body resIdMaster is empty or not an integer'];
} elseif (!Validator::stringType()->notEmpty()->validate($body['type'])) {
return ['errors' => 'Body type is empty or not a string'];
} elseif (!Validator::notEmpty()->validate($body['title']) || !Validator::length(1, 255)->validate($body['title'])) {
return ['errors' => 'Body title number of characters must be between 1 and 255 characters)'];
} elseif (isset($body['status']) && !in_array($body['status'], ['A_TRA', 'TRA', 'SEND_MASS'])) {
return ['errors' => 'Body status can only be A_TRA, TRA or SEND_MASS'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment