Skip to content
Snippets Groups Projects
Commit 81869255 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

Merge branch 'fix/17700/develop' into 'develop'

FIX #17700 TIME 0:05 fix wrong attachment status error message

See merge request maarch/MaarchCourrier!331
parents 5d5f40cd 9c3108f3
No related branches found
No related tags found
No related merge requests found
......@@ -1029,7 +1029,7 @@ class AttachmentController
} elseif (!Validator::stringType()->notEmpty()->validate($body['type'])) {
return ['errors' => 'Body type is empty or not a string'];
} elseif (isset($body['status']) && !in_array($body['status'], ['A_TRA', 'TRA', 'SEND_MASS'])) {
return ['errors' => 'Body type is empty or not a string'];
return ['errors' => 'Body status can only be A_TRA, TRA or SEND_MASS'];
}
if (!ResController::hasRightByResId(['resId' => [$body['resIdMaster']], 'userId' => $GLOBALS['id']])) {
......
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